|
From: Christian S. <csc...@uo...> - 2011-07-02 18:03:11
|
Hi,
Thanks for reading my post. I'm looking for some "how to" advice for the following context:
I have an array of 64x64 data points that I'm plotting "with image", in color, using epslatex. I know that the smallest values in my data are 0, and that there are many of these "0" pixels. I do not, however, know in advance what my data set's maximum value is. I'd like to plot this data using the auto-generated color-box, but in a relative fashion, without actually ascribing particular values to particular colors. In fact, I'd only like to have two cbtics: one at zero and one at the maximum value of the data set. Right now, for example, I'm using the following command:
set cbtics ('$0$' 0, '$v_{\text{max}}$' 2.405e4)
where "2.405e4" is the maximum value of one particular data point - the largest value of all the data points - that I had to look up in the data set in advance. This value will, of course, be different for another data set, meaning I'd have to look it up again each time I plot a different data set.
Is there any way that I can get gnuplot to put my "v_max" color-box label at the (unknown in advance) maximum value of my data set? The more painful way for me to approach this problem is to normalize my data, a step I'd prefer not to have to take. If there's a really obvious answer to this, I apologize for asking the question; however, I did spend some time looking around to no avail!
Thanks again for your time!
Christian
|