[LON-CAPA-cvs] cvs: loncom /homework/templates Plot_curve.problem Plot_curve.problem.meta Plot_data.problem Plot_data.problem.meta

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 17 Dec 2003 16:56:59 -0000


matthew		Wed Dec 17 11:56:59 2003 EDT

  Added files:                 
    /loncom/homework/templates	Plot_curve.problem 
                              	Plot_curve.problem.meta 
                              	Plot_data.problem Plot_data.problem.meta 
  Log:
  Added new plot templates.
  
  

Index: loncom/homework/templates/Plot_curve.problem
+++ loncom/homework/templates/Plot_curve.problem
<problem>

<script type="loncapa/perl">
# Enter computations here
</script>

<gnuplot width="300" transparent="off" samples="100" grid="on" font="large" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on" plottype="Cartesian" >
    <axis xmin="-5" ymin="-4" xmax="5" ymax="4" color="x000000" />
    <xlabel>Label X</xlabel>
    <ylabel>Label Y</ylabel>
    <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
        <curve>sin(x)</curve>
    </curve>
</gnuplot>

<startouttext />Enter Question Text Here.<endouttext />

<numericalresponse answer="">
    <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
    <responseparam name="sig" type="int_range,0-16" description="Significant Figures" default="0,15" />
    <textline />
<hintgroup>
<startouttext />Enter the hint text here. <endouttext />
</hintgroup>
</numericalresponse>
</problem>


Index: loncom/homework/templates/Plot_curve.problem.meta
+++ loncom/homework/templates/Plot_curve.problem.meta
<title>Curve Plot with Numerical Response</title>

Index: loncom/homework/templates/Plot_data.problem
+++ loncom/homework/templates/Plot_data.problem
<problem>

<script type="loncapa/perl">
# Enter computations here
### $amplitude = &random(1,4,0.5);
### $x_min = -5;
### $x_max =  5;
### for ($x=$x_min;$x<=$x_max;$x=$x+0.05) {
###     push(@X,$x);
###     push(@Y,$amplitude*sin($x));
### }
</script>

<gnuplot width="300" transparent="off" samples="100" grid="on" font="large" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on" plottype="Cartesian" >
    <axis xmin="0" ymin="0" xmax="10" ymax="10" color="x000000" />
    <xlabel>Label X</xlabel>
    <ylabel>Label Y</ylabel>
    <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
        <data>1,2,3,4,5,6,7,8,9</data>
        <data>1,2,3,4,5,6,7,8,9</data>
    </curve>
</gnuplot>

<startouttext />Enter Question Text Here.<endouttext />

<numericalresponse answer="">
    <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
    <responseparam name="sig" type="int_range,0-16" description="Significant Figures" default="0,15" />
    <textline />
<hintgroup>
<startouttext />Enter the hint text here. <endouttext />
</hintgroup>
</numericalresponse>
</problem>


Index: loncom/homework/templates/Plot_data.problem.meta
+++ loncom/homework/templates/Plot_data.problem.meta
<title>Data Plot with Numerical Response</title>