--- loncom/xml/lonplot.pm 2003/09/19 17:53:03 1.89 +++ loncom/xml/lonplot.pm 2003/09/27 04:08:56 1.91 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.89 2003/09/19 17:53:03 matthew Exp $ +# $Id: lonplot.pm,v 1.91 2003/09/27 04:08:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -298,41 +298,41 @@ my %tic_defaults = location => { default => 'border', test => sub {$_[0]=~/^(border|axis)$/}, - description => 'Location of major tick marks', + description => 'Location of major tic marks', edit_type => 'choice', choices => ['border','axis'] }, mirror => { default => 'on', test => $onoff_test, - description => 'mirror ticks on opposite axis?', + description => 'mirror tics on opposite axis?', edit_type => 'onoff' }, start => { default => '-10.0', test => $real_test, - description => 'Start major ticks at', + description => 'Start major tics at', edit_type => 'entry', size => '10' }, increment => { default => '1.0', test => $real_test, - description => 'Place a major tick every', + description => 'Place a major tic every', edit_type => 'entry', size => '10' }, end => { default => ' 10.0', test => $real_test, - description => 'Stop major ticks at ', + description => 'Stop major tics at ', edit_type => 'entry', size => '10' }, minorfreq => { default => '0', test => $int_test, - description => 'Number of minor tics between major tick marks', + description => 'Number of minor tics between major tic marks', edit_type => 'entry', size => '10' }, @@ -530,8 +530,8 @@ sub end_gnuplot { alt = "$plot{'alttag'}" /> ENDIMAGE } elsif ($target eq 'tex') { - &Apache::lonnet::ssi("/cgi-bin/plot.gif?file=$filename.data&output=eps"); - + #might be inside the safe space, register the URL for later + &Apache::lonxml::register_ssi("/cgi-bin/plot.gif?file=$filename.data&output=eps"); $result = '\graphicspath{{/home/httpd/perl/tmp/}}\includegraphics[width='.$plot{'texwidth'}.' mm]{'.&Apache::lonnet::unescape($filename).'.eps}'; } } elsif ($target eq 'edit') {