[LON-CAPA-users] click on image and gnuplot

H.K. Ng lon-capa-users@mail.lon-capa.org
Mon, 11 Feb 2008 13:37:06 -0500

Hi, something like the script below will work. The point on the image 
is specified by
which can be variables.


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

<startouttext />Click at a point on the image.  <endouttext />
<imageresponse max="1">
     <foil name="foil1">
<gnuplot width="300" grid="on" align="left" height="300" font="large" 
border="on" samples="100" fgcolor="x000000" bgcolor="xfff
fff" transparent="off" plottype="Cartesian" gridtype="Cartesian">
     <axis color="x000000" ymax="100" ymin="1" xmax="10" xmin="1" />
     <xlabel>Label X</xlabel>
     <ylabel>Label Y</ylabel>
     <curve linestyle="dots" color="x000000" pointtype="0" 
linewidth="3" name="My Plot" limit="closed" pointsize="5">

     <startouttext />This is a hint. <endouttext />

At 09:29 AM 2/11/2008, you wrote:
>we would like to use click on image for plots, which are created via
>How can we solve this problem?
>Susanne Bellmer
>LON-CAPA-users mailing list