|
From: Ethan M. <merritt@u.washington.edu> - 2008-03-08 00:47:11
|
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. 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. 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 > -- Ethan A Merritt Courier Deliveries: 1959 NE Pacific Dept of Biochemistry Health Sciences Building University of Washington - Seattle WA 98195-7742 |