<div dir="ltr">Thanks Stuart for the fix. I wrapped the plot with a table tag but your solution is much tidier! - hk</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 4:20 PM, Stuart Raeburn <span dir="ltr"><<a href="mailto:raeburn@msu.edu" target="_blank">raeburn@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Hon-Kie,<br>
<span class=""><br>
> The figures are not in the right place for the option selections.<br>
<br>
</span>I expect you have already resolved this.<br>
<br>
Anyway, I found that eliminating the 'align="left"' string from the<br>
contents of the $gnuplot scalar assigned in the script block resulted<br>
in alignment of a select box to the left of each dynamically generated<br>
gnuplot image for each foil, with the foils themselves stacked<br>
vertically.<br>
<br>
Stuart Raeburn<br>
LON-CAPA Academic Consortium<br>
<div><div class="h5"><br>
Quoting "H. K. Ng" <<a href="mailto:hkng@fsu.edu">hkng@fsu.edu</a>>:<br>
<br>
> Hi,<br>
><br>
> It seems that images generated using gnuplot do not line up the same way as<br>
> previously generated images. The images are staggered, not like<br>
><br>
> image - selection<br>
> image - selection<br>
><br>
> See example below. Anyone knows how to fix this?<br>
><br>
> Thanks,<br>
> -hk<br>
><br>
> <problem><br>
> <script type="loncapa/perl"><br>
> $gnuplot = &plotThis();<br>
><br>
> sub plotThis {<br>
><br>
> $gnuplot=<<GNUPLOT;<br>
> <gnuplot width="200" transparent="off" samples="100" grid="on" font="10"<br>
> bgcolor="xffffff" height="200" align="left" fgcolor="x000000" border="on"<br>
> plottype="Cartesian" texwidth="70" fontface="sans-serif" bmargin="4"<br>
> rmargin="1" tmargin="2" lmargin="6" texfont="12"><br>
>     <axis xmin="-5" ymin="-4" xmax="5" ymax="4" color="x000000"<br>
> yzero="thick-line" xzero="line" /><br>
>     <ytics minorfreq="2" location="border" mirror="off" increment="2"<br>
> start="-4" /><br>
>     <xlabel>Label X</xlabel><br>
>     <ylabel>Label Y</ylabel><br>
>     <curve linestyle="lines" color="x000000" pointtype="2"<br>
> linetype="dashed" linewidth="1" limit="closed" pointsize="1"><br>
>         <function>sin(x)</function><br>
>     </curve><br>
> </gnuplot><br>
> GNUPLOT<br>
> return $gnuplot;<br>
> }<br>
> </script><br>
> <startouttext /><br>
> The figures are not in the right place for the option selections.<br>
> <endouttext /><br>
><br>
> <optionresponse max="600" randomize="no" id="13"><br>
>    <foilgroup options="('Select 1','Select 2','Select 3')"><br>
>       <foil value="Select 1" name="s1"><br>
>          <startouttext /><parse>$gnuplot</parse><endouttext /><br>
>       </foil><br>
>       <foil value="Select 2" name="s2"><br>
>          <startouttext /><parse>$gnuplot</parse><endouttext /><br>
>       </foil><br>
>       <foil value="Select 3" name="s3"><br>
>         <startouttext /><parse>$gnuplot</parse><endouttext /><br>
>       </foil><br>
>       </foilgroup><br>
> </optionresponse><br>
><br>
> </problem><br>
<br>
</div></div>_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target="_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br>
</blockquote></div><br></div>