octave-maintainers
[Top][All Lists]
Advanced

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

Re: color "none" for figures


From: David Bateman
Subject: Re: color "none" for figures
Date: Sun, 07 Feb 2010 16:37:11 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Michael Goffioul wrote:
On Sun, Feb 7, 2010 at 9:06 AM, David Bateman <address@hidden> wrote:
Thorsten Meyer wrote:
Hi,

attached is a little patch, which allows a value of "none" for the "color"
property of a figure.
Example:
plot(1,1)
set(gcf, "color", [1 0 0]); # yellow background
set(gcf, "color", "none");  # transparent background

This should also be done for the axes as the axes and figures are treated
separately. Shouldn't "none" be the default color for the figure and axes?

I'm not sure about the purpose of a transparent figure window.
In Matlab, the figure color is the background color of the figure
widget, it's not "none" by default (but something like light gray).
What do you expect to happen with a figure color set to "none"?
Transparent window?

Also, the axes color is white by default. This makes sense if
you consider that the figure color is light gray by default.

Michael.

I'd expect that "none" should make the figure transparent such that the color of the root of the window is seen as the color of the figure.... Not all terminals in gnuplot have a white background color and so using white as the default seems to me to be the wrong thing to do. Classically the TEK terminals had black backgrounds (I cut my teeth on a Visual 603 terminal with a TEK graphics emulator in the early nineties), but there are probably others.

D.



reply via email to

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