octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: individual colormaps per subplots


From: Daniel J Sebald
Subject: Re: individual colormaps per subplots
Date: Tue, 19 Jun 2007 17:06:55 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

David Bateman wrote:
Daniel J Sebald wrote:

Attached is a patch that moves the colormap from figure to axes.  I'm
guessing it wouldn't be too uncommon for a user to want to have two
images on the screen with different colormaps.  For example:

subplot(2,1,1);
image;
colormap(gray(64));
subplot(2,1,2);
image;
colormap(ocean(64));

This requires the latest CVS version of gnuplot as there was just an
upgrade to allow multiple colormaps in X11.  Most other file-based
terminals should work.  There may be some GUI-based terminals that don't
yet work.  If so, let me know.


Is there a sensible fallback for older versions of gnuplot? What happens
with the attached patch when used with both 4.0 and 4.2?

For older versions the colormap of both images (in this example) will be the 
most recently set, i.e., similar to current behavior as though colormap is 
associated with the figure, not the axes.  So, there really isn't any code 
necessary to fall back to current behavior in the case of 4.0 and 4.2.

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]