Re: [Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-14 Thread Oliver King
Hi Ben, Are you displaying the plots in the thread, or are you just saving the plots directly? If you are saving them directly, then you can set your backend to be Agg and get rid of the Tkinter.Tk() call (and probably should get rid of the import as well). That way, matplotlib won't

Re: [Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-14 Thread Oliver King
You must set the desired backend from the very begining and before importing pylab o pyplot. That did it - I made the change in my .matplotlibrc file and it no longer crashes. Thanks! Oliver -- Everyone hates slow

[Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-13 Thread Oliver King
Hi, I have a library which uses matplotlib to produce some plots. This library is called by a thread. However, python crashes with this error when it tries to plot something: Tk_MacOSXSetupTkNotifier: first [load] of TkAqua has to occur in the main thread! If I do as it says and call window

Re: [Matplotlib-users] How to start when you don't know what to do

2013-01-15 Thread Oliver King
Hi Steven, I first look at what types of plots and axes are available out-of-the-box. The gallery and examples sections of the matplotlib webpage are good places to get ideas about what is possible when programming in this mode. If there isn't an existing axis type which works, I take one of

[Matplotlib-users] Varying alpha in ListedColormap not working

2012-12-05 Thread Oliver King
Hi, I've been trying to plot a line with varying alpha (but constant color). After much googling I have come up with the following code segment, which by all indications should work. It works when I vary an individual RGB element, but not when I vary alpha.

Re: [Matplotlib-users] Varying alpha in ListedColormap not working

2012-12-05 Thread Oliver King
What is your matplotlib.__version__ ? I think that code only made it's way into v1.2.0 (the latest stable), and was did not make it into v1.1.1 (or anything before it) I'm running 1.1.0 - I'll upgrade it now. Thanks for the help! Oliver

[Matplotlib-users] Missing example source code

2012-03-05 Thread Oliver King
Hi, I wanted to see the source code for an example on the Axis Artist page, specifically this bit of source code: http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/figures/axis_direction_demo_step04.py Unfortunately, I got a 404 not found error. Please would whoever is in charge of this