File:  [LON-CAPA] / loncom / homework / templates / Plot_data.problem
Revision 1.1: download - view: text, annotated - select for diffs
Wed Dec 17 16:56:59 2003 UTC (20 years, 5 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
Added new plot templates.

    1: <problem>
    2: 
    3: <script type="loncapa/perl">
    4: # Enter computations here
    5: ### $amplitude = &random(1,4,0.5);
    6: ### $x_min = -5;
    7: ### $x_max =  5;
    8: ### for ($x=$x_min;$x<=$x_max;$x=$x+0.05) {
    9: ###     push(@X,$x);
   10: ###     push(@Y,$amplitude*sin($x));
   11: ### }
   12: </script>
   13: 
   14: <gnuplot width="300" transparent="off" samples="100" grid="on" font="large" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on" plottype="Cartesian" >
   15:     <axis xmin="0" ymin="0" xmax="10" ymax="10" color="x000000" />
   16:     <xlabel>Label X</xlabel>
   17:     <ylabel>Label Y</ylabel>
   18:     <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
   19:         <data>1,2,3,4,5,6,7,8,9</data>
   20:         <data>1,2,3,4,5,6,7,8,9</data>
   21:     </curve>
   22: </gnuplot>
   23: 
   24: <startouttext />Enter Question Text Here.<endouttext />
   25: 
   26: <numericalresponse answer="">
   27:     <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
   28:     <responseparam name="sig" type="int_range,0-16" description="Significant Figures" default="0,15" />
   29:     <textline />
   30: <hintgroup>
   31: <startouttext />Enter the hint text here. <endouttext />
   32: </hintgroup>
   33: </numericalresponse>
   34: </problem>
   35: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>