Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Eric Firing
On 2015/05/26 9:10 AM, Benjamin Root wrote: > I think this is a feature/bug that got reverted in the master branch. > Perhaps you could try building matplotlib from source and seeing if the > problem goes away? Ben, it looks familiar, and related to a bizarre feature that I thought we had elimina

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Sterling Smith
Sean, Do you need an `annotate`, or just a `text`? `text` has the `transform` keyword, to which you can pass `ax.transAxes`. ax.text(.9,.9, r"$\mathbf{" + lab + ")}$”,transform=ax.transAxes,ha=‘right’,va=‘center’) -Sterling On May 26, 2015, at 10:06AM, Sean Lake wrote: > Hello all, > > I'

[Matplotlib-users] configure subplots feature request

2015-05-26 Thread Neal Becker
I'm plotting 1 figure with 8 subplots. They are 8 channels, and I want to see if there is some interaction. I wish that the 'configure subplots' menu allowed me to choose just some subplots to display (resizing when I turn some off), so I could get a better view at the selected subplots. -- T

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Benjamin Root
I think this is a feature/bug that got reverted in the master branch. Perhaps you could try building matplotlib from source and seeing if the problem goes away? Cheers! Ben Root On Tue, May 26, 2015 at 3:00 PM, Sean Lake wrote: > Sterling, > > Thanks for the pointer. I've already used a workaro

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Sean Lake
Sterling, Thanks for the pointer. I've already used a workaround where I used "data" coordinates and put it at: 0.9 * (xmax - xmin) + xmin, and similar for y. I'm really only reporting this so that it can be fixed if there is someone who does need to annotate something in a grid. Sean > On Ma

[Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Sean Lake
Hello all, I'm using matplotlib 1.4.3 installed using fink with python 2.7. I'm trying to produce a grid of plots using gridspec that has annotations to label each plot. Here is the call to annotate the current axes: ax.annotate( r"$\mathbf{" + lab + ")}$", xy=(0.5*(xmin+xmax)

Re: [Matplotlib-users] Plotting a imshow() image in 3d in matplotlib

2015-05-26 Thread Benjamin Root
On Tue, May 26, 2015 at 12:36 PM, Raj Kumar Manna wrote: > import matplotlib.pyplot as plt > from mpl_toolkits.mplot3d import Axes3D > import numpy as np > > # create a 21 x 21 vertex mesh > xx, yy = np.meshgrid(np.linspace(0,1,21), np.linspace(0,1,21)) > > # create vertices for a rotated mesh (3

[Matplotlib-users] Plotting a imshow() image in 3d in matplotlib

2015-05-26 Thread Raj Kumar Manna
Hi, How to plot a imshow() image in 3d axes? I was trying with this post . In that post, the surface plot looks same as imshow() plot but actually they are not. To demonstrate, here I took different data: import matplotlib.pyplot as plt from mpl_toolki

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David Hughes
I removed all calls to threads and swapped Gdk.threads_add_timeout to Glib.timeout_add (See attached. However if I comment the call to self.canvas.draw(), the python memory utilisation sits at 30.8Mb. from gi.repository import Gtk, Gdk, GLib from matplotlib.figure import Figure # Tell matplot

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread Jens Nielsen
IGtk3Agg should work in you use cairocffi instead of py(2/3)cairo. AFAIK py(2/3)cairo is more or less unmaintained these days and that function has never been implemented in a released version. Best Jens tir. 26. maj 2015 kl. 16.27 skrev David : > > I take it that it doesn't happen using the GT

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David Hughes
Thanks, however GTK3Agg is unimplemented in at the GTK3-end: File "c:\Python34\lib\site-packages\matplotlib\backends\backend_gtk3agg.py", line 69, in on_draw_event buf, cairo.FORMAT_ARGB32, width, height) NotImplementedError: Surface.create_for_data: Not Implemented yet. Regards David Fr

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David
> I take it that it doesn't happen using the GTK3Agg backend? GTK3Agg is unimplemented at the GTK3-end: File "c:\Python34\lib\site-packages\matplotlib\backends\backend_gtk3agg.py", line 69, in on_draw_event buf, cairo.FORMAT_ARGB32, width, height) NotImplementedError: Surface.create_for_dat

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread Benjamin Root
I take it that it doesn't happen using the GTK3Agg backend? What about the threading portion? Does it happen if you take the threading out? Ben Root On Tue, May 26, 2015 at 8:23 AM, David wrote: > Hi, I seem to have a memory leak while generating a 'live' plot display. > This wasn't the case fo

[Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David
Hi, I seem to have a memory leak while generating a 'live' plot display. This wasn't the case for GTK2, but the example below is consuming ~800k/second (Matplotlib 1.4.3, PyGI aio-3.14.0_rev18, Windows 7 x64, python 3.4.3). I have checked the garbage collector but it doesn't show anything interesti