--- loncom/xml/lonplot.pm 2016/01/22 22:30:07 1.176
+++ loncom/xml/lonplot.pm 2018/09/26 14:52:43 1.179
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.176 2016/01/22 22:30:07 damieng Exp $
+# $Id: lonplot.pm,v 1.179 2018/09/26 14:52:43 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -525,7 +525,7 @@ my %axis_defaults =
},
xformat => {
default => 'on',
- test => sub {$_[0]=~/^(on|off|\d+(f|F|e|E))$/},
+ test => sub {$_[0]=~/^(on|off|\d+(f|F|e|E|P(|\s*\Q\0317\0200\E)))$/},
description => 'X-axis number formatting',
edit_type => 'choice',
choices => ['on', 'off', '2e', '2f'],
@@ -750,7 +750,7 @@ sub end_gnuplot {
"\n";
} else {
- $result .= "";
+ $result .= "";
}
} elsif ($target eq 'tex') {
&Apache::lonxml::debug(" gnuplot wid = $Apache::lonplot::plot{'width'}");