/usr/share/doc/pyxplot/html/sec-multiplot.html is in pyxplot-doc 0.8.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Multiplot Mode</title>
<link href="sect0066.html" title="Settings Associated with Multiplot Items" rel="next" />
<link href="ch-vector_graphics.html" title="Producing Vector Graphics" rel="prev" />
<link href="ch-vector_graphics.html" title="Producing Vector Graphics" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="ch-vector_graphics.html" title="Producing Vector Graphics"><img alt="Previous: Producing Vector Graphics" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="ch-vector_graphics.html" title="Producing Vector Graphics"><img alt="Up: Producing Vector Graphics" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0066.html" title="Settings Associated with Multiplot Items"><img alt="Next: Settings Associated with Multiplot Items" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0043.html">Plotting and Vector Graphics</a> <b>:</b>
</span>
</span><span>
<span>
<a href="ch-vector_graphics.html">Producing Vector Graphics</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">Multiplot Mode</b>
</span>
</span>
<hr />
</div>
<div><h1 id="sec:multiplot">3.1 Multiplot Mode</h1>
<p> <a name="a0000000906" id="a0000000906"></a> </p><p>PyXPlot has two modes in which it can produce graphical output. In <i class="it">singleplot</i> mode, the default, each time the <tt class="tt">plot</tt> command is issued, the canvas is wiped clean and the new plot is placed alone on a blank page. In <i class="it">multiplot</i> mode, vector graphics objects accumulate on the canvas. Each time the <tt class="tt">plot</tt> command is issued, the new graph is placed on top of any other objects which were already on the canvas, and many plots can be placed side-by-side. </p><p>The user can switch between these two modes of operation by issuing the commands <tt class="tt">set multiplot</tt><a name="a0000000907" id="a0000000907"></a> and <tt class="tt">set nomultiplot</tt><a name="a0000000908" id="a0000000908"></a>. The <tt class="tt">set origin</tt> command<a name="a0000000909" id="a0000000909"></a> is required for multiplot mode to be useful when placing plots side-by-side: it sets the position on the page of the lower-left corner of the next plot. It takes a comma-separated <img src="images/img-0188.png" alt="$(x,y)$" style="vertical-align:-4px;
width:40px;
height:18px" class="math gen" /> coordinate pair, which may have units of length, or, if dimensionless, are assumed to be measured in centimetres. The following example plots a graph of <img src="images/img-0015.png" alt="$\sin (x)$" style="vertical-align:-4px;
width:45px;
height:18px" class="math gen" /> to the left of a plot of <img src="images/img-0010.png" alt="$\cos (x)$" style="vertical-align:-4px;
width:47px;
height:18px" class="math gen" />: </p><pre>
set multiplot
set width 8
plot sin(x)
set origin 10,0
plot cos(x)
</pre><p>All objects on a multiplot canvas have a unique identification number. By default, these count up from one, such that the first item placed on the canvas is number one, the next is number two, and so forth. Alternatively, the user may specify a particular number for a particular object by supplying the modifier <tt class="tt">item</tt> to the <tt class="tt">plot</tt> command, followed by an integer identification number, as in the following example: </p><pre>
plot item 6 'data.dat'
</pre><p> If there were already an object on the canvas with identification numberĀ 6, this object would be deleted and replaced with the new object. </p><p>A list of all of the objects on the current multiplot canvas can be obtained using the <tt class="tt">list</tt> command<a name="a0000000910" id="a0000000910"></a>, which produces output in the following format: </p><pre>
# ID Command
1 plot item 1 'data1.dat'
2 plot item 2 'data2.dat'
3 [deleted] plot item 3 'data3.dat'
</pre><p>A multiplot canvas can be wiped clean by issuing the <tt class="tt">clear</tt> command<a name="a0000000911" id="a0000000911"></a>, which removes all items currently on the canvas. Alternatively, individual items may be removed using the <tt class="tt">delete</tt> command<a name="a0000000912" id="a0000000912"></a>, which should be followed by a comma-separated list of the identification numbers of the objects to be deleted. Deleted items may be restored using the <tt class="tt">undelete</tt> command<a name="a0000000913" id="a0000000913"></a>, which likewise takes a comma-separated list of the identification numbers of the objects to be restored, e.g.: </p><pre>
delete 1,2
undelete 2
</pre><p> Once a canvas has been cleared using the <tt class="tt">clear</tt> command<a name="a0000000914" id="a0000000914"></a>, however, there is no way to restore it. Objects may be moved around on the canvas using the <tt class="tt">move</tt> command<a name="a0000000915" id="a0000000915"></a>. For example, the following would move item 23 to position <img src="images/img-0562.png" alt="$(8,8)$" style="vertical-align:-4px;
width:38px;
height:18px" class="math gen" /> measured in inches: </p><pre>
move 23 to 8*unit(in), 8*unit(in)
</pre></div>
<div class="contents section-contents"><!--<strong>Subsections</strong>-->
<ul>
<li><a href="sect0066.html">3.1.1 Settings Associated with Multiplot Items</a>
</li><li><a href="sect0067.html">3.1.2 Reordering Multiplot Items</a>
</li><li><a href="sec-set_display.html">3.1.3 The Construction of Large Multiplots</a>
</li>
</ul>
</div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="ch-vector_graphics.html" title="Producing Vector Graphics"><img alt="Previous: Producing Vector Graphics" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="ch-vector_graphics.html" title="Producing Vector Graphics"><img alt="Up: Producing Vector Graphics" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0066.html" title="Settings Associated with Multiplot Items"><img alt="Next: Settings Associated with Multiplot Items" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>
</body>
</html>
|