On Mon, Aug 16, 2010 at 4:48 PM, Friedrich Romstedt <
friedrichromst...@gmail.com> wrote:

> Ben, I fully agree with you that figures should be able to be saved
> both coloured and grayscale.  It was a misunderstanding.  What I meant
> was, that it will not be necessary to display one part of the figure
> in colour and the other in grayscale at the same time.
>
> Friedrich
>
>
"...it will not be necessary..."

I think we are still getting confused here.  I was listing off several
different kinds of use-cases where one would like to have a mix of grey
colormaps and colored colormaps.  The reason I mention being able to save a
greyscale and a color version of the same figure is in the context of my
approach to solving this problem (the swapping out of colormaps).  Honestly,
I think that your approach is better for dealing with that particular use
case.

However, I mention other cases where one is merely wanting a modified
version of a particular colormap to use, be it greyscale, or inverse, or
brighter/darker, etc.  What I envision your solution to be solving would be
something like this:

fig = plt.figure()
ax = fig.add_subplot(1, 2, 1)
ax.plot(np.linspace(1, 10, 10), np.linspace(2, 8, 10))
ax.plot(np.linspace(1, 10, 10), np.linspace(4, 9, 10))

ax = fig.add_subplot(1, 2, 2)
ax.set_grey(True)
ax.plot(np.linspace(1, 10, 10), np.linspace(1, 8, 10))
ax.plot(np.linspace(1, 10, 10), np.linspace(3, 7, 10))
ax.plot(np.linspace(1, 10, 10), np.linspace(2, 9, 10))

plt.show()

And see one in color and one as grey and the other as color.  This would be
a nice feature, but I would settle for it to be at the level of the entire
figure.

I think my approach is trying to solve a related, but different problem.  My
approach is trying to make colormaps more usable and flexible for the
users.  I would like to ensure that matplotlib does not artificially limit
the ability of a user to fully utilize the variety of colormaps available to
him.

Ben Root
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to