|
From: Philipp K. J. <ja...@ie...> - 2008-03-08 03:24:15
|
On Friday 07 March 2008 16:47, you wrote: > On Monday 03 March 2008 17:42, Philipp K. Janert wrote: > > Here is my question (in short): > > Is it possible to adjust the slice of the spectrum > > shown in the colorbox without affecting the mapping > > of colors to z-values? > > I can't think of a good way to do this currently. > A very ugly way is to use > "set colorbox user origin X,Y size XX,YY" > to create a huge colorbox that goes off-scale, then > cover over the unwanted extremities with white-filled > rectangles. You are right, that is ugly... ;-) > > This is yet another case in which it would be very nice to > be able to specify a mapping function linking the scales of > two different plot axes. Usually people want this for x / x2, > but in your case I guess it would be z / cb. That's an interesting idea, to have a separate mapping function. In my current case, I was able to get acceptable results using something like: set logscale cb set palette defined ( log(1) 'red', log(2) 'blue', ... ) to spread out the part of the palette that I was mostly interested in. Thanks for your comments! Best, Ph. > > Ethan > > > Here is what I try to do: > > > > Say, I want to plot some data, the values of which > > are in the range [0:100], and I want to show ALL > > the values, therefore: set zrange [0:100] > > > > Now I have a very skewed palette, like so: > > set palette defined ( 0 'red', 1 'white', 100 'blue' ) > > > > For convenience, the index in the colorbox maps > > directly to the z-value. > > > > Now I want to show in the colorbox only those colors > > that map to z-values between 0 and 10, without > > affecting the mapping! > > > > Is there a way to do this? > > > > Using set cbrange [0:10] will not do it, because this > > affects the mapping. It will associate "blue" with the > > z-value 10 and adjust all the intermediate values > > accordingly. That's not what I am trying to do. > > > > Any suggestions? > > > > Best, > > > > Ph. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > gnuplot-beta mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |