After saving in GUI, how can I get the oo-interface?

Arnar -

I presume you are using Tk.
This is a known bug under Tk, that is apparently difficult to solve.
John Hunter looked into it a year back or so, but couldn't find help
from Tk experts that may know the solution.
Oddly enough, I have written my own GUI in Tk, where I modified the
toolbar, and I don't have the problem.

If this could be solved, I would be very happy,

Mark

···

From: "Arnar Flatberg" <arnar.flatberg@...287...>
Subject: [Matplotlib-users] After saving in GUI, how can I get the
        oo-interface?
To: matplotlib-users@lists.sourceforge.net
Message-ID:
        <5d3194020711220348w2cbbfee2ve6bcc76fdd09f666@...288...>
Content-Type: text/plain; charset=ISO-8859-1

Hi list

It looks like I cant change any properties of a matplotlib figure/axis
after I saved the figure
using the GUI. At least I cant use gca(), and gcf(). It works fine if
the save (e.g., figure.savefig('foo'))
was performed in the oo interface

Does anybody else have a problem with this (code below)?

Actually, I am using the GTK (Agg) backend. But thanks for replying.

Arnar

···

On Nov 23, 2007 9:00 PM, Mark Bakker <markbak@...287...> wrote:

Arnar -

I presume you are using Tk.
This is a known bug under Tk, that is apparently difficult to solve.
John Hunter looked into it a year back or so, but couldn't find help
from Tk experts that may know the solution.
Oddly enough, I have written my own GUI in Tk, where I modified the
toolbar, and I don't have the problem.

If this could be solved, I would be very happy,

Mark

> From: "Arnar Flatberg" <arnar.flatberg@...287...>
> Subject: [Matplotlib-users] After saving in GUI, how can I get the
> oo-interface?
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
> <5d3194020711220348w2cbbfee2ve6bcc76fdd09f666@...288...>
> Content-Type: text/plain; charset=ISO-8859-1

>
> Hi list
>
> It looks like I cant change any properties of a matplotlib figure/axis
> after I saved the figure
> using the GUI. At least I cant use gca(), and gcf(). It works fine if
> the save (e.g., figure.savefig('foo'))
> was performed in the oo interface
>
> Does anybody else have a problem with this (code below)?

Well, that is very odd. Do Tk and GTK have the same problem? Was this known?
Is there a more substantial problem here than a backend problem?
Mark

···

On Nov 24, 2007 11:31 AM, Arnar Flatberg < arnar.flatberg@…287…> wrote:

Actually, I am using the GTK (Agg) backend. But thanks for replying.

Arnar

On Nov 23, 2007 9:00 PM, Mark Bakker <markbak@…287…> wrote:

Arnar -

I presume you are using Tk.
This is a known bug under Tk, that is apparently difficult to solve.
John Hunter looked into it a year back or so, but couldn’t find help
from Tk experts that may know the solution.

Oddly enough, I have written my own GUI in Tk, where I modified the
toolbar, and I don’t have the problem.

If this could be solved, I would be very happy,

Mark

From: “Arnar Flatberg” <arnar.flatberg@…287…>
Subject: [Matplotlib-users] After saving in GUI, how can I get the
oo-interface?

To: matplotlib-users@lists.sourceforge.net
Message-ID:
<
5d3194020711220348w2cbbfee2ve6bcc76fdd09f666@…288…>
Content-Type: text/plain; charset=ISO-8859-1

Hi list

It looks like I cant change any properties of a matplotlib figure/axis

after I saved the figure
using the GUI. At least I cant use gca(), and gcf(). It works fine if
the save (e.g., figure.savefig(‘foo’))
was performed in the oo interface

Does anybody else have a problem with this (code below)?

I'm pretty sure this is bug w/ tkagg is fixed in svn, because we
reverted to the old file save dialog that was causing it. I am
surprised to hear that it is on gtk or gtkagg, since I've never hear
any reports of this. In any case 0.87 is over a year old now, so I
wonder if Arnar could upgrade.

JDH

···

On Nov 23, 2007 2:00 PM, Mark Bakker <markbak@...287...> wrote:

Arnar -

I presume you are using Tk.
This is a known bug under Tk, that is apparently difficult to solve.
John Hunter looked into it a year back or so, but couldn't find help
from Tk experts that may know the solution.
Oddly enough, I have written my own GUI in Tk, where I modified the
toolbar, and I don't have the problem.

If this could be solved, I would be very happy,

Thanks, Mark and John, I will look into a trunk version of matplotlib
when I get to a chance.
BTW, as far as I recall, I had the same troubles with Ubuntu Gutsy
(runs v. 0.90.1).

Arnar

···

On Nov 24, 2007 4:25 PM, John Hunter <jdh2358@...287...> wrote:

On Nov 23, 2007 2:00 PM, Mark Bakker <markbak@...287...> wrote:
> Arnar -
>
> I presume you are using Tk.
> This is a known bug under Tk, that is apparently difficult to solve.
> John Hunter looked into it a year back or so, but couldn't find help
> from Tk experts that may know the solution.
> Oddly enough, I have written my own GUI in Tk, where I modified the
> toolbar, and I don't have the problem.
>
> If this could be solved, I would be very happy,

I'm pretty sure this is bug w/ tkagg is fixed in svn, because we
reverted to the old file save dialog that was causing it. I am
surprised to hear that it is on gtk or gtkagg, since I've never hear
any reports of this. In any case 0.87 is over a year old now, so I
wonder if Arnar could upgrade.

JDH