octave-maintainers
[Top][All Lists]
Advanced

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

Re: color "none" for figures


From: Shai Ayal
Subject: Re: color "none" for figures
Date: Sat, 6 Feb 2010 23:50:03 +0200

On Sat, Feb 6, 2010 at 10:20 PM, Thorsten Meyer <address@hidden> 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
>
> With the gnuplot backend, it allows to set the background of a figure
> transparent (this used to be the default before patch 1e38d9ed1e28). Doing 
> this
> will also remove the black edge around the plot.
>
> With the fltk backend (and the patch applied), setting the figure color to
> "none" does not change the color drawn. However, it doesn't give an error
> message either (while a random string does):
> lt-octave:1> backend("fltk")
> lt-octave:2> plot(2,1)
> lt-octave:4> set(gcf, "color", "blue");  # blue background
> lt-octave:5> set(gcf, "color", "none").  # background stays blue
> lt-octave:6> set(gcf, "color", "blibla")
> error: invalid color specification: blibla
> error: invalid value for color property "color" (value = blibla)
>
> Can somebody give me a hint, where this fltk problem could be fixed in the 
> sources?
>
When you say the background is transparent, do you mean on-screen, or
in the "printed" off-screen file. In what file types did this work?

Shai



reply via email to

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