[Matplotlib-users] Simple animation with Qt4 backend

2010-11-21 Thread Pierre Raybaut
Hi all, Following a discussion with a Spyder user regarding simple animations with Matplotlib, I took a very quick look at the Qt4's backend source code to see if it was possible to make the following code work (which is working with the TkAgg backend but not the Qt4 backend):

Re: [Matplotlib-users] Simple animation with Qt4 backend

2010-11-21 Thread Darren Dale
On Sun, Nov 21, 2010 at 10:36 AM, Pierre Raybaut pierre.rayb...@gmail.com wrote: Hi all, Following a discussion with a Spyder user regarding simple animations with Matplotlib, I took a very quick look at the Qt4's backend source code to see if it was possible to make the following code work

Re: [Matplotlib-users] Simple animation with Qt4 backend

2010-11-21 Thread Gael Varoquaux
On Sun, Nov 21, 2010 at 11:58:42AM -0500, Darren Dale wrote: Apparently, to make it work with the Qt4 backend, one simply has to add: QtGui.QApplication.processEvents() to the method 'FigureCanvasQt.draw_idle' (matplotlib/backends/backend_qt4.py). , discussion of why processEvents was

[Matplotlib-users] Axis line width and label problem

2010-11-21 Thread Tommy Grav
I have two questions: 1. Is there a way to increase the line width of the axes? I have figured out how to do it with the tick marks, but not the axes themselves. 2. When adding a label to plot (xlabel and ylabel) the label will be cropped if the font is large. Is there a way to rescale the

Re: [Matplotlib-users] Axis line width and label problem

2010-11-21 Thread Eric Firing
On 11/21/2010 11:21 AM, Tommy Grav wrote: I have two questions: 1. Is there a way to increase the line width of the axes? I have figured out how to do it with the tick marks, but not the axes themselves. for s in ax.spines.values(): s.set_linewidth(5) 2. When adding a label to

[Matplotlib-users] callbacks / custom nav toolbar

2010-11-21 Thread Daniel Hyams
I was trying to implement my own nav toolbar, and everything works great except an exception that gets thrown intermittently when in zoom rubberbanding operation, from this bit of code in CallbackRegistry (cbook.py): def process(self, s, *args, **kwargs): process signal *s*.

Re: [Matplotlib-users] colorbar settings with a object oriented approach (or mixed pyplot)

2010-11-21 Thread Jae-Joon Lee
On Thu, Nov 18, 2010 at 11:10 PM, John washa...@gmail.com wrote: 1) I only need one colorbar, how would I create a single colorbar on the right that spanned across all axes? (ie. same height as the stack) There are a few options you can try. I guess the easiest way is setting up the axes

Re: [Matplotlib-users] set font properties for colorbar

2010-11-21 Thread Jae-Joon Lee
When cax is an axes instance of the colorbar, you may use cax.tick_params(labelsize=8) If you want to directly set the FontProperties, you need to iterate over the ticks (it seems that tick_params does not support this). for tick in cax.yaxis.majorTicks: tick.label2.set_fontproperties(fp)

Re: [Matplotlib-users] date plot with two y axes...and some other things

2010-11-21 Thread Jae-Joon Lee
On Fri, Nov 19, 2010 at 2:59 AM, C M cmpyt...@gmail.com wrote: 2) How can I get the lines belonging to different axes to cycle through colors such that the same color is not used for any lines shown in the plot?  (that is, I don't want to hard code a color to any line, I want it to