File:  [LON-CAPA] / loncom / homework / templates / Plot_data.problem
Revision 1.2: download - view: text, annotated - select for diffs
Thu Apr 22 17:14:30 2004 UTC (20 years ago) by www
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, HEAD
No more "Enter hint text"

    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 /><endouttext />
   32: </hintgroup>
   33: </numericalresponse>
   34: </problem>
   35: 

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