Applet htmlcode:
<applet width = "640" height = "480" codebase="." archive="Plot.jar" code="ptolemy.plot.PlotApplet">
<param name = "progressbar" value = "true">
<param name = "scriptable" value = "false">
<param name = "background" value = "#ffffff">
<param name = "name" value = "PlotApplet">
<param name="title" value="titel htmlsyntax: & pi ... π">
<param name="xlabel" value="x-as label">
<param name="ylabel" value="y-as label">
<param name="grid" value="on">
<param name="color" value="on">
<param name="xmin" value="0">
<param name="xmax" value="6">
<param name="ymax" value="5">
<param name="ymin" value="-5">
<param name="color" value="on">
<param name="smooth" value="0">
<param name="function" value="tan(x),sin(x),cos(x),2*cos(x),cos(2*x),1/cos(x)">
<param name="names" value="curve 1:tan(x),curve 2: sin(x),curve 3:cos(x),2*cos(x),cos(2*x),1/cos(x)">
<param name="plotsteps" value="100">
<param name="normalexponent" value="yes"><!-- used for logscales: if set 1.0×103 in stead of 1.0E3 -->
</applet>
Other means of loading data:
<param name="file" value="http://localhost/wims/wims.cgi?session=&cmd=getfile&special_parm=mydata">
example of a single line datafile:
"TitleText: Software Downloads;XRange: 0,10;YRange: 0,10000;# Manually specify X ticks;# Note that the 0 and 10 point result in clipping of the rectangles.;XTicks: 1993 0, 1994 1, 1995 2, 1996 3, 1997 4, 1998 5, 1999 6, 2000 7, 2001 8, 2002 9, 2003 10;XLabel: Year;YLabel: Downloads;Marks: none;Lines: off;# Width and offset of bars;Bars: 0.5, 0.2;NumSets: 3;;DataSet: program a;0, 100;1, 300;2, 600;3, 1000;4, 4000;5, 6000;6, 3000;7, 1000;8, 400;9, 0;10, 0;;DataSet: program b;0, 0;1, 0;2, 50;3, 100;4, 800;5, 400;6, 1000;7, 5000;8, 2000;9, 300;10, 0;;DataSet: program c;0, 0;1, 0;2, 0;3, 10;4, 100;5, 400;6, 2000;7, 5000;8, 9000;9, 7000;10, 1000"
Or by direct file in a directory
?<param name="dataurl" value="../data/thisdata.txt">
An example of a multiline datafile:
TitleText: Software Downloads
XRange: 0,10
YRange: 0,10000
# Manually specify X ticks
# Note that the 0 and 10 point result in clipping of the rectangles.
XTicks: 1993 0, 1994 1, 1995 2, 1996 3, 1997 4, 1998 5, 1999 6, 2000 7, 2001 8, 2002 9, 2003 10
XLabel: Year
YLabel: Downloads
Marks: none
Lines: off
# Width and offset of bars
Bars: 0.5, 0.2
NumSets: 3
DataSet: program a
0, 100
1, 300
2, 600
3, 1000
4, 4000
5, 6000
6, 3000
7, 1000
8, 400
9, 0
10, 0
DataSet: program b
0, 0
1, 0
2, 50
3, 100
4, 800
5, 400
6, 1000
7, 5000
8, 2000
9, 300
10, 0
DataSet: program c
0, 0
1, 0
2, 0
3, 10
4, 100
5, 400
6, 2000
7, 5000
8, 9000
9, 7000
10, 1000