[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm
raeburn
raeburn at source.lon-capa.org
Wed Sep 26 10:52:43 EDT 2018
raeburn Wed Sep 26 14:52:43 2018 EDT
Modified files:
/loncom/xml lonplot.pm
Log:
- For a gnuplot tic label format of nP (n=integer), regexp will permit pi
symbol (unicode: \0317\0200) to be shown to right of number.
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.178 loncom/xml/lonplot.pm:1.179
--- loncom/xml/lonplot.pm:1.178 Wed Sep 26 14:02:47 2018
+++ loncom/xml/lonplot.pm Wed Sep 26 14:52:43 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.178 2018/09/26 14:02:47 raeburn 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 @@
},
xformat => {
default => 'on',
- test => sub {$_[0]=~/^(on|off|\d+(f|F|e|E|P))$/},
+ 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'],
More information about the LON-CAPA-cvs
mailing list