From: <mh...@us...> - 2011-11-19 07:59:39
|
Revision: 317 http://gnuplot-py.svn.sourceforge.net/gnuplot-py/?rev=317&view=rev Author: mhagger Date: 2011-11-19 07:59:32 +0000 (Sat, 19 Nov 2011) Log Message: ----------- Add an "fs" option to PlotItem. Modify PlotItem class adding the option "fs", meaning "fill style", an option useful when plotting bar diagrams or histograms (added in gnuplot 4). Theoretically it should be possible to set this option also by "with boxes fs <pattern>", but this seem to lose box width settings. Patch by: Lorenzo Mentaschi <lor...@ya...> Modified Paths: -------------- trunk/PlotItems.py Modified: trunk/PlotItems.py =================================================================== --- trunk/PlotItems.py 2010-12-12 07:40:33 UTC (rev 316) +++ trunk/PlotItems.py 2011-11-19 07:59:32 UTC (rev 317) @@ -87,6 +87,8 @@ 'with', with_, None, 'with %s'), 'title' : lambda self, title: self.set_string_option( 'title', title, 'notitle', 'title "%s"'), + 'fs' : lambda self, fs: self.set_string_option( + 'fs', fs, None, 'fs %s'), } _option_list['with_'] = _option_list['with'] @@ -94,7 +96,7 @@ _option_sequence = [ 'binary', 'index', 'every', 'thru', 'using', 'smooth', - 'axes', 'title', 'with' + 'axes', 'title', 'with', 'fs' ] def __init__(self, **keyw): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |