From 5eec77a637a99cb792643168e5824796844a3e6c Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 6 Jan 2011 16:08:47 -0800 Subject: [PATCH] colormaps are now treated as 2d plots with an extra data value --- feedGnuplot.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/feedGnuplot.pl b/feedGnuplot.pl index fb44d92..eb34716 100755 --- a/feedGnuplot.pl +++ b/feedGnuplot.pl @@ -52,7 +52,9 @@ As an example, if line 3 of the input is "0 9 1 20" --[no]3d Do [not] plot in 3D. This only makes sense with --domain. Each domain here is an (x,y) tuple - --colormap Show a colormapped top-down view + --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 increments extraValuesPerPoint --[no]stream Do [not] display the data a point at a time, as it comes in @@ -299,6 +301,7 @@ sub mainThread { my $valuesPerPoint = 1; if($options{extraValuesPerPoint}) { $valuesPerPoint += $options{extraValuesPerPoint}; } + if($options{colormap}) { $valuesPerPoint++; } local *PIPE; my $dopersist = ''; @@ -457,7 +460,7 @@ sub mainThread { /($numRE)/go or next; $domain[0] = $1; - if($options{'3d'} || $options{colormap}) + if($options{'3d'}) { /($numRE)/go or next; $domain[1] = $1;