-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsec-multilayer-plots.html
76 lines (76 loc) · 8.25 KB
/
sec-multilayer-plots.html
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Multilayer Plots</title>
<link rel="stylesheet" type="text/css" href="scidavis.css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<meta name="keywords" content="Qt, SciDAVis, Data, Analysis, Plotting">
<link rel="home" href="index.html" title="The SciDAVis Handbook">
<link rel="up" href="using.html" title="Chapter 2. Drawing plots with SciDAVis">
<link rel="prev" href="sec-3d-plots.html" title="3D plots">
<link rel="next" href="sec-adding-objects.html" title="Adding objects to a plot">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">Multilayer Plots</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="sec-3d-plots.html">Prev</a> </td>
<th width="60%" align="center">Chapter 2. Drawing plots with SciDAVis</th>
<td width="20%" align="right"> <a accesskey="n" href="sec-adding-objects.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="sec-multilayer-plots"></a>Multilayer Plots</h2></div></div></div>
<a class="indexterm" name="idp1395516620"></a><p>The multilayer windows can contain multiple plots (layers) with different characteristics. Each layer has a corresponding button, which displays a number and is pressed when the layer is the currently active layer. There is only one active layer at a time, and the plot tools (zoom, cursors, drawing tools, delete and move points) can only operate on this layer. Each plot can be made active by clicking on it or on its corresponding button.</p>
<p>To arrange the layers use the <a class="link" href="sec-graph-menu.html#arrange-layers-cmd"><span class="command"><strong>Arrange Layers</strong></span> command</a>. You can add or remove layers with the <a class="link" href="sec-graph-menu.html#add-layer-cmd"><span class="command"><strong>Add Layer</strong></span> command</a> and <a class="link" href="sec-graph-menu.html#remove-layer-cmd"><span class="command"><strong>Remove Layer</strong></span> command</a> or copy/paste layers from one multilayer window to another. All these functions can be reached via the <a class="link" href="sec-graph-menu.html" title="The Graph Menu">Graph menu</a>, by using the <a class="link" href="sec-plot-toolbar.html" title="The Plot Toolbar.">Plot toolbar</a> or via the context menu (right click in the multilayer window anywhere outside a plot area).</p>
<p>You can resize and move a layer using the Layer geometry dialog. You can also arrange and resize the plots by hand. A whole plot can be moved by drag and drop: click on the plot and keep the left mouse button pressed.</p>
<p>By keeping the Shift key pressed and dragging the border of a plot you can scale a plot as needed. When moving the mouse over the borders of a plot, you will see the corresponding arrows.</p>
<p>You can also use the mouse wheel in order to resize the layers: keeping the Ctrl key pressed and scrolling will resize the hight of the plot canvas, while keeping the Alt key pressed and scrolling will resize its width. By keeping the Shift key pressed and scrolling you can resize the plot in both dimensions.</p>
<div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="sec-building-multilayer-plots-1"></a>Building a multilayer plot panel</h3></div></div></div>
<p>This is the simplest way to obtain a multilayer plot. It can be used if you want to build a panel of plots with a simple arrangement: 2 plot in a row or in a column, or 4 plots in 2 rows and 2 columns.</p>
<p>You can select two columns with Y-values in a table, and then use one of the <span class="command"><strong>Panel</strong></span> commands in the <a class="link" href="sec-plot-menu.html" title="The Plot Menu">Plot menu</a>. SciDAVis will create a panel of plots in which the size of the different elements of each plot are synchronized.</p>
<div class="informalfigure"><div class="mediaobject"><img src="pics/multilayer-panel.png"></div></div>
<p>You can then customize the two plots, if you want to change the arrangement of the panel, you can use the <a class="link" href="sec-graph-menu.html#arrange-layers-cmd"><span class="command"><strong>Arrange Layers</strong></span> command</a> from the <a class="link" href="sec-graph-menu.html" title="The Graph Menu">Graph menu</a>. It must be reminded in this case that each plot is in a layer with a surface which is the half or the quarter of the window surface area. So, if you want to share an element between the two plots (for example a text label), you need to add it in a new layer (see the <a class="link" href="sec-graph-menu.html#add-text-cmd"><span class="command"><strong>Add Text</strong></span> command</a> for more detaile).</p>
</div>
<div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="sec-building-multilayer-plots-2"></a>Building a multilayer plot step by step</h3></div></div></div>
<p>If you need to build a more complex multilayer plot, you can define it step by step.</p>
<p>The first step is to build your first plot, for example from two columns of a table. We obtain a standard plot window:</p>
<div class="informalfigure"><div class="mediaobject"><img src="pics/multilayer-step-1.png"></div></div>
<p>Then, select the plot window and use the <a class="link" href="sec-graph-menu.html#add-layer-cmd"><span class="command"><strong>Add Layer</strong></span> command</a> from the <a class="link" href="sec-graph-menu.html" title="The Graph Menu">Graph menu</a>. This will activate a dialog box. If you choose "Guess" you will obtain a panel with two columns, if you choose "corner" you will obtain two superposed layers. If you want to build a panel with two rows or some other regular matrix of plots, you can use the <a class="link" href="sec-graph-menu.html#arrange-layers-cmd"><span class="command"><strong>Arrange Layers</strong></span> command</a> to convert the plot to a panel.</p>
<div class="informalfigure"><div class="mediaobject"><img src="pics/multilayer-step-2.png"></div></div>
<p>If you want to build a more complex geometry like plots inserted in another one, you can modify the geometry of each plot with the <span class="emphasis"><em>layer geometry</em></span> command. This command is accessible with the context menu of the layer and it allows to modify the size and the position of each layer. Beware that by default, the background of the different layers are not transparent. Therefore, you must modify this parameter if you want to have some superposition of plots. This modification can be done with the <a class="link" href="sec-format-menu.html#format-plot-cmd"><span class="command"><strong>Plot</strong></span> command</a> of the <a class="link" href="sec-format-menu.html" title="The Format Menu">Format menu</a>.</p>
<div class="informalfigure"><div class="mediaobject"><img src="pics/multilayer-step-3.png"></div></div>
<p>For each layer, you can use the <a class="link" href="sec-graph-menu.html#add-remove-curve-cmd"><span class="command"><strong>Add/Remove Curve</strong></span> command</a> to select the X and Y values from one of the tables of the project.</p>
<div class="informalfigure"><div class="mediaobject"><img src="pics/multilayer-step-4.png"></div></div>
<p>After this, you can customize your plot. At the end, the modifications done on the axis or on the axis labels may have modified the geometry of the two plots. You can synchronize again the two plots by applying again the <a class="link" href="sec-graph-menu.html#arrange-layers-cmd"><span class="command"><strong>Arrange Layers</strong></span> command</a>.</p>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="sec-3d-plots.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="using.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="sec-adding-objects.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">3D plots </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> Adding objects to a plot</td>
</tr>
</table>
</div>
</body>
</html>