Talk About Network

Google





Graphics > Gnuplot interactive function plotter > Problem with cb...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3523 of 3655
Post > Topic >>

Problem with cbrange default for color-by-z-value in 2D plots

by David Sanders <dpsanders@[EMAIL PROTECTED] > Sep 26, 2008 at 08:21 AM

Hi,

Many thanks for implementing color-by-z-value in 2D plots, which is a
feature that I have been wanting for a long time. However, by default
the color box does not seem to adjust to the data as it does with 3D
plots.

Minimal example:
With the latest CVS version (downloaded today). I created "temp.dat"
with the contents
0.5 0.5 0.5
1. 1. 1.
1.5 1.5 0.5

and tried
plot "temp.dat" pal

and

plot "temp.dat" u 1:2:3 pal z

(Checked in x11 and wxt terminals.)

All the points look like the same color. The color box runs from -10
to 10.

After

set cbrange [0.5:1.5]

the colors are indeed visible.
The latter is the default cbrange in the 3D version:

set view map
splot "temp.dat" u 1:2:(0):3 pal z

Could the default cbrange be fitted to the data?  Or am I doing
something wrong?

Thanks and best wishes,
David.

Output of show version long:

        Version 4.3 patchlevel 0
        last modified September 2008
        System: Linux 2.6.24-16-generic

Compile options:
-READLINE  +LIBREADLINE  +HISTORY  -BACKWARDS_COMPATIBILITY
+BINARY_DATA
+GD_PNG  +GD_JPEG  +GD_TTF  +GD_GIF  +ANIMATION
-NOCWDRC  +X11  +X11_POLYGON  +MULTIBYTE  +X11_EXTERNAL +USE_MOUSE
+HIDDEN3D_QUADTREE
+DATASTRINGS  +HISTOGRAMS  +OBJECTS  +STRINGVARS  +MACROS  +IMAGE
 




 4 Posts in Topic:
Problem with cbrange default for color-by-z-value in 2D plots
David Sanders <dpsande  2008-09-26 08:21:12 
Re: Problem with cbrange default for color-by-z-value in 2D plot
sfeam <sfeam@[EMAIL PR  2008-09-26 09:39:32 
Re: Problem with cbrange default for color-by-z-value in 2D plot
David Sanders <dpsande  2008-09-27 08:54:16 
Re: Problem with cbrange default for color-by-z-value in 2D plot
Hermann Peifer <peifer  2008-09-27 20:42:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 22:58:47 PST 2009.