From 8c0f3df285e3ba443c2e0256c94edaff16fc80e8 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Wed, 2 Mar 2022 19:38:44 -0800 Subject: [PATCH] Added --cbmin, --cbmax These are used unless --colormap. Added more docs to describe what --colormap does. It is legacy. --- bin/feedgnuplot | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index aaaf08c..bac9666 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -881,7 +881,15 @@ sub mainThread sendRangeCommand( "xrange", $options{xmin}, $options{xmax} ); sendRangeCommand( "yrange", $options{ymin}, $options{ymax} ); sendRangeCommand( "zrange", $options{zmin}, $options{zmax} ); - sendRangeCommand( "cbrange", $options{zmin}, $options{zmax} ) if($options{colormap}); + if($options{colormap}) + { + # legacy behavior. Nobody should really be using --colormap + sendRangeCommand( "cbrange", $options{zmin}, $options{zmax} ); + } + else + { + sendRangeCommand( "cbrange", $options{cbmin},$options{cbmax}); + } # add the extra global options print(PIPE "$_\n") foreach (@{$options{extracmds}}); @@ -1917,9 +1925,16 @@ Interpret the X data as a time/date, parsed with the given format C<--colormap> -Show a colormapped xy plot. Requires extra data for the color. zmin/zmax can be -used to set the extents of the colors. Automatically sets the -C<--rangesize>/C<--tuplesize>. +This is a legacy option used to who a colormapped xy plot. It does: + +- Adds C to C<--curvestyleall> + +- Adds 1 to the default C<--tuplesize> (if C<--tuplesizeall> is not given + +- Uses C<--zmin>, C<--zmax> to set the colorbar range + +It's clearer to set the relevant options explicitly, but C<--colormap> still +exists for compatibility =item