colormaps are now treated as 2d plots with an extra data value

This commit is contained in:
Dima Kogan 2011-01-06 16:08:47 -08:00
parent f30a842af6
commit 5eec77a637

View File

@ -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. --[no]3d Do [not] plot in 3D. This only makes sense with --domain.
Each domain here is an (x,y) tuple 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 --[no]stream Do [not] display the data a point at a time, as it
comes in comes in
@ -299,6 +301,7 @@ sub mainThread
{ {
my $valuesPerPoint = 1; my $valuesPerPoint = 1;
if($options{extraValuesPerPoint}) { $valuesPerPoint += $options{extraValuesPerPoint}; } if($options{extraValuesPerPoint}) { $valuesPerPoint += $options{extraValuesPerPoint}; }
if($options{colormap}) { $valuesPerPoint++; }
local *PIPE; local *PIPE;
my $dopersist = ''; my $dopersist = '';
@ -457,7 +460,7 @@ sub mainThread
{ {
/($numRE)/go or next; /($numRE)/go or next;
$domain[0] = $1; $domain[0] = $1;
if($options{'3d'} || $options{colormap}) if($options{'3d'})
{ {
/($numRE)/go or next; /($numRE)/go or next;
$domain[1] = $1; $domain[1] = $1;