Subversion Repositories wimsdev

Rev

Blame | Last modification | View Log | RSS feed

  1. <html>
  2. <head></head>
  3.     <body>
  4.         <applet width = "640" height = "480" codebase="dist" archive="Plot.jar" code="ptolemy.plot.PlotApplet">
  5.             <param name = "progressbar" value = "true">
  6.             <param name = "scriptable" value = "false">
  7.             <param name = "background" value = "#ffffff">
  8.             <param name = "name" value = "PlotApplet">
  9.             <param name="title" value="in the titel, htmlsyntax like &quot; &amp; &auml; &rarr; &pi; &quot; , is allowed">
  10.             <param name="xlabel" value="x-as label">
  11.             <param name="ylabel" value="y-as label">
  12.             <param name="grid" value="on">
  13.             <param name="color" value="on">
  14.             <param name="xmin" value="0">
  15.             <param name="xmax" value="6">
  16.             <param name="ymax" value="5">
  17.             <param name="ymin" value="-5">
  18.             <param name="color" value="on">
  19.             <param name="smooth" value="0">
  20.             <param name="function" value="tan(x),sin(x),cos(x),2*cos(x),cos(2*x),1/cos(x)">                                                                                              
  21.             <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)">
  22.             <param name="plotsteps" value="100">
  23.             <param name="normalexponent" value="yes">          
  24.         </applet>
  25.         <br>
  26.         data loaded by function param:
  27.         &lt;param name="function" value="tan(x),sin(x),cos(x),2*cos(x),cos(2*x),1/cos(x)"&gt;
  28.         <p>Applet htmlcode:<br>
  29.         <tt>
  30.         &lt;applet width = "640" height = "480" codebase="." archive="Plot.jar" code="ptolemy.plot.PlotApplet"&gt;<br>
  31.             &lt;param name = "progressbar" value = "true"&gt;<br>
  32.             &lt;param name = "scriptable" value = "false"&gt;<br>
  33.             &lt;param name = "background" value = "#ffffff"&gt;<br>
  34.             &lt;param name = "name" value = "PlotApplet"&gt;<br>
  35.             &lt;param name="title" value="titel htmlsyntax: &amp; pi ... &pi;"&gt;<br>
  36.             &lt;param name="xlabel" value="x-as label"&gt;<br>
  37.             &lt;param name="ylabel" value="y-as label"&gt;<br>
  38.             &lt;param name="grid" value="on"&gt;<br>
  39.             &lt;param name="color" value="on"&gt;<br>
  40.             &lt;param name="xmin" value="0"&gt;<br>
  41.             &lt;param name="xmax" value="6"&gt;<br>
  42.             &lt;param name="ymax" value="5"&gt;<br>
  43.             &lt;param name="ymin" value="-5"&gt;<br>
  44.             &lt;param name="color" value="on"&gt;<br>
  45.             &lt;param name="smooth" value="0"&gt;<br>
  46.             &lt;param name="function" value="tan(x),sin(x),cos(x),2*cos(x),cos(2*x),1/cos(x)"&gt;<br>                                                                                              
  47.             &lt;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)"&gt;<br>
  48.             &lt;param name="plotsteps" value="100"&gt;<br>
  49.             &lt;param name="normalexponent" value="yes"&gt;&lt;!-- used for logscales:  if set 1.0&times;10<sup>3</sup> in stead of 1.0E3 --&gt;<br>           
  50.         &lt;/applet&gt;<br>
  51.         </tt>
  52.         Other means of loading data:<br>
  53.         &lt;param name="file" value="http://localhost/wims/wims.cgi?session=&cmd=getfile&special_parm=mydata"&gt;<br><br>
  54.         example of a single line datafile:<br>
  55.         "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"
  56. <p>
  57.     Or by direct file in a directory
  58.         <tt>?&lt;param name="dataurl" value="../data/thisdata.txt"&gt;</tt><br>
  59.         An example of a multiline datafile:<br>
  60. <tt>
  61. TitleText: Software Downloads<br>
  62. XRange: 0,10<br>
  63. YRange: 0,10000<br>
  64. # Manually specify X ticks<br>
  65. # Note that the 0 and 10 point result in clipping of the rectangles.<br>
  66. XTicks: 1993 0, 1994 1, 1995 2, 1996 3, 1997 4, 1998 5, 1999 6, 2000 7, 2001 8, 2002 9, 2003 10<br>
  67. XLabel: Year<br>
  68. YLabel: Downloads<br>
  69. Marks: none<br>
  70. Lines: off<br>
  71. # Width and offset of bars<br>
  72. Bars: 0.5, 0.2<br>
  73. NumSets: 3<br>
  74. <br>
  75. DataSet: program a<br>
  76. 0, 100<br>
  77. 1, 300<br>
  78. 2, 600<br>
  79. 3, 1000<br>
  80. 4, 4000<br>
  81. 5, 6000<br>
  82. 6, 3000<br>
  83. 7, 1000<br>
  84. 8, 400<br>
  85. 9, 0<br>
  86. 10, 0<br>
  87. <br>
  88. DataSet: program b<br>
  89. 0, 0<br>
  90. 1, 0<br>
  91. 2, 50<br>
  92. 3, 100<br>
  93. 4, 800<br>
  94. 5, 400<br>
  95. 6, 1000<br>
  96. 7, 5000<br>
  97. 8, 2000<br>
  98. 9, 300<br>
  99. 10, 0<br>
  100. <br>
  101. DataSet: program c<br>
  102. 0, 0<br>
  103. 1, 0<br>
  104. 2, 0<br>
  105. 3, 10<br>
  106. 4, 100<br>
  107. 5, 400<br>
  108. 6, 2000<br>
  109. 7, 5000<br>
  110. 8, 9000<br>
  111. 9, 7000<br>
  112. 10, 1000<br>
  113. </tt>
  114.     </body>
  115. </html>
  116.  
  117.