Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-17 Thread Chao YUE
Hi Sterling, Thanks for the help. Now we have a complete script that works as what we want: labels parallel with the colorbar with colorbar seperated By the way, is it possible to put in the gallery? from pylab import * a = np.arange(100).reshape(10,10) cbarlevel=np.arange(0,101,10)

Re: [Matplotlib-users] Gap when using contourf and nan's

2012-11-17 Thread Ian Thomas
On 16 November 2012 15:38, Bror Jonsson brorl...@gmail.com wrote: Oh, I left out a line in the code, very sorry for that. Here is a full example: import numpy as np import pylab as pl #Generate a matrix populated with 1's fld = np.ones((4,4)) #Set one corner of the matrix to NaN

Re: [Matplotlib-users] using draw_if_interactive in library plots?

2012-11-17 Thread Goyo
2012/11/14 Skipper Seabold jsseab...@gmail.com: Hi All, Hoping someone can help me get a definitive answer to this question. Is draw_if_interactive bad to have in library plotting code? I think the only issue here is the overhead of importing the whole pyplot stuff and checking every now and