[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: color "none" for figures
From: |
Ben Abbott |
Subject: |
Re: color "none" for figures |
Date: |
Sun, 07 Feb 2010 10:41:53 -0500 |
On Feb 7, 2010, at 10:37 AM, David Bateman wrote:
> 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.
Matlab's figure property color is gray be default, but hard copies appear to be
rendered with color = 'none'. I'm not sure if Matlab always ignores the
figure's color property when rendering off screen.
Ben