transparent canvas

Hi, This subject has already come up before and John

    > suggested using

    > f = figure(1, frameon=False)

    > for a totally transparent background which works fine as
    > an optional argumento to subplot in the matlab interface

    > subplot(111, frameon=False)
    > I want to know what would be the equivalent to

    > f._figurePatch.set_alpha(0.0)

    > for the matlab interface, since subplot does not have a
    > _figurePatch atribute.

I'm not sure exactly what you are asking. Axes and Subplot don't have
a _figurePatch, but they do have an _axesPatch, which as you note you
can turn off by using frameon=False. If you want to set it's alpha,
do

  ax = subplot(111)
  frame = ax.get_frame()
  frame.set_alpha(0.0)

Is this what you are looking for?

JDH

That’s exactly it!!

thanks John!


fiocruz4.jpg
Flávio Codeço Coelho, PhD

Programa de Computação Científica

Fundação Oswaldo Cruz

Rio de Janeiro – Brasil

···

On Tue, 2004-06-15 at 01:39, John Hunter wrote:

*
  I'm not sure exactly what you are asking. Axes and Subplot don't have
a _figurePatch, but they do have an _axesPatch, which as you note you
can turn off by using frameon=False. If you want to set it's alpha,
do
ax = subplot(111)
frame = ax.get_frame()
frame.set_alpha(0.0)
Is this what you are looking for?*