File: index.canvas

package info (click to toggle)
gnuplot 4.6.0-8
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 16,920 kB
  • sloc: ansic: 84,661; cpp: 6,631; lisp: 5,013; makefile: 2,129; sh: 1,092; objc: 647; asm: 539; perl: 298; awk: 235; pascal: 194; csh: 179; tcl: 88; python: 46
file content (224 lines) | stat: -rw-r--r-- 7,675 bytes parent folder | download | duplicates (3)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8"> 
<title>Gnuplot demo scripts run through the HTML canvas terminal</title>
<link type="text/css" href="gnuplot_demo.css" rel="stylesheet">
<link type="text/css" href="gnuplot_mouse.css" rel="stylesheet">
</head>

<body oncontextmenu="return false;">

<h2 align=center>Gnuplot demo scripts run through the HTML canvas terminal<br>
    See also the demo output for the
    <a href="http://gnuplot.sourceforge.net/demo_cvs/">PNG</a> and
    <a href="http://gnuplot.sourceforge.net/demo_svg/">SVG</a> terminals.
</h2>
<canvas id="warning" width=1 height=1>
    <div class='box'><h2>Your browser may not support the HTML 5 canvas element</h2></div>
</canvas>

<p>
The canvas driver for gnuplot was contributed by Bruce Lueckenhoff, and extended by Ethan Merritt (sfeam).
To view the results you need a browser that supports the HTML 5 'canvas' element.
</p>


<table width="100%">
<tbody><tr valign="top">

<td rowspan=2>
    <h4>Basic 2D plot styles</h4>
    <ul>
    <li><a href="simple.html">simple&nbsp;functions</a></li>
    <li><a href="fillcrvs.html">filled&nbsp;curves</a></li>
    <li><a href="fillbetween.html">fill&nbsp;between&nbsp;curves</a></li>
    <li><a href="candlesticks.html">candlesticks</a></li>
    <li><a href="mgr.html">error bars</a></li>
    <li><a href="histograms.html">histograms</a></li>
    <li><a href="steps.html">step functions</a></li>
    <li><a href="multiaxis.html">multiple axis scales</a></li>
    <li><a href="using.html">mixing styles</a></li>
    <li><a href="pointsize.html">variable size points</a></li>
    <li><a href="param.html">parametric&nbsp;functions</a></li>
    <li><a href="vector.html">vector fields</a></li>
    <li><a href="circles.html">circles</a></li>
    <li><a href="boxplot.html">boxplots</a></li>
    </ul>

    <h4>Math functions</h4>
    <ul>
    <li><a href="approximate.html">approximation</a></li>
    <li><a href="spline.html">B-splines</a></li>
    <li><a href="airfoil.html">Bezier splines</a></li>
    <li><a href="prob2.html">probability</a></li>
    <li><a href="prob.html">probability (more)</a></li>
    <li><a href="random.html">random numbers</a></li>
    <li><a href="bivariat.html">recursion, etc...</a></li>
    <li><a href="stats.html">data statistics</a></li>
    </ul>

    <h4>Animation</h4>
    <ul>
    <li><font color=gray>not supported</font></li>
    </ul>

</td>

<td rowspan=2>
    <h4>3D plots and surfaces</h4>
    <ul>
    <li><a href="surface1.html">surfaces 1</a></li>
    <li><a href="surface2.html">surfaces 2</a></li>
    <li><a href="contours.html">contours</a></li>
    <li><a href="singulr.html">singularities</a></li>
    <li><a href="hidden.html">hidden surfaces</a></li>
    <li><a href="pm3d.html">pm3d coloring</a></li>
    <li><a href="hidden2.html">pm3d hidden surfaces</a></li>
    <li><a href="world2.html">3D mapping</a></li>
    </ul>

    <h4>Coordinate and<br> axis transforms</h4>
    <ul>
    <li><a href="polar.html">polar coords</a></li>
    <li><a href="poldat.html">polar data</a></li>
    <li><a href="world.html">cylindrical/spherical</a></li>
    <li><a href="timedat.html">time/date coords</a></li>
    </ul>

    <h4>Binary and Image data </h4>
    <ul>
    <li><a href="binary.html">binary data</a></li>
    <li><a href="rgbalpha.html">RGB + alpha channel</a></li>
    <li><a href="barchart_art.html">rescaled images</a></li>
    </ul>

    <h4>Colors</h4>
    <ul>
    <li><a href="rainbow.html">user-defined colors</a></li>
    <li><a href="rgb_variable.html">RGB coloring</a></li>
    <li><a href="pm3dcolors.html">pm3d colors</a></li>
    </ul>
</td>

<td rowspan=2>
    <h4>Sample Applications</h4>
    <ul>
    <li><a href="controls.html">control models</a></li>
    <li><a href="discrete.html">discrete&nbsp;contours</a></li>
    <li><a href="finance.html">financial data</a></li>
    <li><a href="scatter.html">non-gridded data</a></li>
    <li><a href="running_avg.html">running averages</a></li>
    <li><a href="smooth.html">cummulative smoothing</a></li>
    <li><a href="heatmaps.html">2D and 3D heat maps</a></li>
    </ul>

    <h4>Text options</h4>
    <ul>
    <li><a href="enhanced_utf8.html">enhanced text</a></li>
    <li><a href="datastrings.html">string data</a></li>
    <li><a href="cities.html">variable font size</a></li>
    <li><a href="canvas_utf8.html">utf8 math symbols</a></li>
    </ul>

    <h4>Page Layout</h4>
    <ul>
    <li><a href="layout.html">multiplot&nbsp;layout</a></li>
    <li><a href="multiplt.html">multiple plots</a></li>
    <li><a href="margins.html">aligned plots</a></li>
    <li><a href="ellipse.html">axis location</a></li>
    <li><a href="rectangle.html">rectangles</a></li>
    </ul>

    <h4>Styles</h4>
    <ul>
    <li><a href="dashcolor.html">line styles</a></li>
    <li><a href="fillstyle.html">fill styles</a></li>
    <li><a href="arrowstyle.html">arrow styles</a></li>
    <li><a href="transparent.html">transparency</a></li>
    <li><a href="transparent_solids.html">transparent solids</a></li>
    </ul>
</td>

<td></td>
</tr>

<tr valign=top><td align=center>


<h3>Example of mouse tracking, zoom/unzoom</h3>

	<table class="plot">
	<tr>

	<td>
	    <script src="canvastext.js"></script>
	    <script src="gnuplot_common.js"></script>
	    <script src="gnuplot_mouse.js"></script>
	    <script src="mouseable.js"></script>
	    <canvas id="gnuplot_canvas" width="500" height="350" onkeypress=gnuplot.do_hotkey() tabindex="0"></canvas>
	    <script>
		gnuplot.grid_lines = true;
		gnuplot.zoomed = false;
		gnuplot.active_plot_name = "gnuplot_canvas";
		gnuplot.active_plot = function(){gnuplot_canvas();};
		if (window.attachEvent) {window.attachEvent('onload', gnuplot.active_plot);}
		else if (window.addEventListener) {window.addEventListener('load', gnuplot.active_plot, false);}
		else {document.addEventListener('load', gnuplot.active_plot, false);}
	    </script>
	</td></tr>
	<tr><td>
	    <table id="gnuplot_mousebox" class="mbunder">
	    <tr>
		<td class="icon" onclick="gnuplot.toggle_grid();"><img src="grid.png" id="gnuplot_grid_icon" alt="#" title="toggle grid"></td>
		<td class="icon" onclick="gnuplot.unzoom();"><img src="previouszoom.png" id="gnuplot_unzoom_icon" alt="unzoom" title="unzoom"></td>
		<td class="icon" onclick="gnuplot.rezoom();"><img src="nextzoom.png" id="gnuplot_rezoom_icon" alt="rezoom" title="rezoom"></td>
		<td class="icon"><a href="canvas_help.html">
		                 <img src="help.png" align=right alt="help" title="help"></a></td>
		<td class="icon" onclick='gnuplot.toggle_plot("gnuplot_canvas_plot_1")'>&#10112;</td>
	        <td class="mb0">x</td>
	        <td class="mb1"><span id="gnuplot_canvas_x">&nbsp;</span></td>
	        <td class="mb0">y</td>
		<td class="mb1"><span id="gnuplot_canvas_y">&nbsp;</span></td>
	    </table>
	<br>Note:
	<ul><li>Zoom using right (Firefox, Konqueror) or center (Opera, Safari) mouse button
	    <li>Mark point using left mouse button
	    <li>&#10112; toggles first plot on/off&nbsp;&nbsp;  # toggles grid on/off
	</ul>
	</td></tr>
	</table>


</td></tr>

</tbody></table>
<hr>


<table width="100%">
<tbody><tr valign="top">

    <td>
    <i>This page created by Ethan Merritt<br>April 2011</i>
    </td>

    <td>
    <ul>
    <li><a href="http://sourceforge.net/projects/gnuplot/">
	Gnuplot development pages on SourceForge</a></li>
    <li>On-line PDF documentation in
	<a href="http://gnuplot.sourceforge.net/docs/gnuplot.pdf">English</a>
	and
	<a href="http://gnuplot.sourceforge.net/docs/gnuplot-ja.pdf">Japanese</a></li>
    </ul>
    </td>
    
    <td>
    <ul>
    </ul>
    </td>
    
</tr>
</tbody></table>
</body></html>