--- loncom/xml/lonplot.pm 2002/03/22 20:05:19 1.63 +++ loncom/xml/lonplot.pm 2002/04/09 18:01:09 1.64 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.63 2002/03/22 20:05:19 albertel Exp $ +# $Id: lonplot.pm,v 1.64 2002/04/09 18:01:09 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -112,7 +112,7 @@ my $words_test = sub {$_[0]=~s/\s+/ ## ## ################################################################### my @gnuplot_edit_order = - qw/bgcolor fgcolor height width font transparent grid border align/; + qw/alttag bgcolor fgcolor height width font transparent grid border align/; my $gnuplot_help_text = <<"ENDPLOTHELP";

@@ -148,6 +148,13 @@ ENDPLOTHELP my %gnuplot_defaults = ( + alttag => { + default => 'dynamically generated plot', + test => $words_test, + description => 'brief description of the plot', + edit_type => 'entry', + size => '40' + }, height => { default => 200, test => $int_test, @@ -484,10 +491,10 @@ sub end_gnuplot { if ($target eq 'web') { $result .= <<"ENDIMAGE"; image should be /cgi-bin/plot.gif?$filename + alt = "$plot{'alttag'}" /> ENDIMAGE } elsif ($target eq 'tex') { &Apache::lonnet::ssi('cgi-bin/plot.gif?file=$filename'.