Looking through the code I realize that in interactive mode (ipython)
there is no call to show() by default.
And if you call it, it does not call mailoop because is_interactive==Tr
ue
So why is there the restriction to call only once Gtk.main in mailoop?
if it is not called anyway
Why not make tha
Sorry, the replay-all is not my default.
In that case it is easier for me to monkey patch just the mainloop to
invoke Gtk.main everytime.
But again, even if we are talking about interactive (ipython), why is
it unbalanced?
I mean calls Gtk.main vs Gtk.main_quit?
Federico
On Fri, Oct 11, 2013
Please keep all emails in-band
I was commenting that the issue you are having with getting easy-to-use
pre-built figures in a non-interactive program without dragging pyplot in
is the same as what I think the root of 2503 is and the re-factor I
proposed to make your life easier would also help tha
@Eric
But this imposses alot of restrictions?
I want to have the GUI backend with the toolbar and everything.
If I do it like you propose, I have to create the figures on the side
when calling from a ipython session. and when calling from my gtk app,
I have to create by hand everything even the too
On Tue, Oct 8, 2013 at 12:00 PM, jcskyhawk09 wrote:
> Hi,
>
> I am trying to use matplotlib to create script files that I can use to
> render 3D plots in blender. I have already created the code to create the
> file itself. I am currently trying to find the best place to put my code
> into. I hav
On 2013/10/11 7:36 AM, Federico Ariza wrote:
> Ok,
> for me embedding is more of using the canvas directly and putting
> inside my own window.
> But OK, i give you that.
>
> In that case,
> if I have standalone funcion (or class) that can be run alone something like
> do_my_plots() that if run
Ok,
for me embedding is more of using the canvas directly and putting
inside my own window.
But OK, i give you that.
In that case,
if I have standalone funcion (or class) that can be run alone something like
do_my_plots() that if run with python myplots.py will display the plots.
How can I ad
embedding vs launching is a distinction without a difference, you are
integrating matplotlib with your own gui application.
That said, it would be nice to re-factor the figure_manager classes so they
they make no reference to `Gcf` or anything associated with pylab and could
be easily re-used.
I
On 2013/10/11 7:12 AM, Federico Ariza wrote:
> I am not embedding, just launching, as the example shows.
No, your example shows that you *are* embedding. You are running your
own Gtk.main(). That's embedding.
--
Octobe
Again
In the example the plotting is inside the callback (just for
simplicity), but in reality, the plotting is in another class,
somewhere else that can be called standalone to produce the plots.
Federico
On Fri, Oct 11, 2013 at 1:12 PM, Federico Ariza
wrote:
> I am not embedding, just launchi
I am not embedding, just launching, as the example shows.
Federico
On Fri, Oct 11, 2013 at 1:11 PM, Thomas A Caswell wrote:
> If you are embedding matplotlib, do not import `pyplot`. `pyplot` sets up a
> bunch of gui-magic (tm) in the background (as you found in
> `figure_manager`).
>
> Tom
>
>
If you are embedding matplotlib, do not import `pyplot`. `pyplot` sets up
a bunch of gui-magic (tm) in the background (as you found in
`figure_manager`).
Tom
On Fri, Oct 11, 2013 at 11:57 AM, Federico Ariza
wrote:
> Hello everybody
>
> Working on one GTK3 app, that calls matplotlib to plot som
Hello everybody
Working on one GTK3 app, that calls matplotlib to plot some figures, I
found that closing all the figures from matplotlib kills my app also.
The problem
Gtk.main() is called only if there is no previous invocation, in my
case, my Gtk3 app invokes main, so the mainloop won't ca
13 matches
Mail list logo