Re: [Matplotlib-users] bisecting triangulation

2013-07-02 Thread Ian Thomas
On 1 July 2013 13:40, zetah ot...@hush.ai wrote: Hi, I have set of points in a plane and make triplot: subplot(121) plot(points[:,0], points[:,1], 'o') title('Set of points') subplot(122) triplot(points[:,0], points[:,1]) title('Triangulation') result:

[Matplotlib-users] quickly return colorbar ticks?

2013-07-02 Thread Chao YUE
Dear all matplotlib users, I found there is not a get_ticks method available for colorbar instance, how could I quick get the ticks of a colorbar? thanks, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et

Re: [Matplotlib-users] how to make a colorbar starting with a different color?

2013-07-02 Thread Chao YUE
One way I could think of is to make two contingent mat.axes.Axes, with a smaller one setting as white backgroud, and the other bigger on holding the colorbar. Is there some better way? Chao On Tue, Jul 2, 2013 at 12:12 PM, Chao YUE chaoyue...@gmail.com wrote: Dear all, Does anyone have

Re: [Matplotlib-users] how to make a colorbar starting with a different color?

2013-07-02 Thread Benjamin Root
There is the set_over and set_under members of a colormap, and the plt.colorbar() function takes an extend='min' argument to add an extra color at the beginning of the colorbar. Setting extendrect=True, the added color will be rectangular instead of triangular. Hopefully that helps. Cheers, Ben

Re: [Matplotlib-users] quickly return colorbar ticks?

2013-07-02 Thread Benjamin Root
This is a constant source of confusion. The colorbar object should be thought of as just another subaxes. To get the ticks, you want the ticks from the colorbar's yaxis or xaxis object accordingly. Of course, I could have sworn we added a helper function for this at some point, but I could be

Re: [Matplotlib-users] Reports from SciPy 2013

2013-07-02 Thread Jason Grout
On 7/1/13 9:33 AM, Michael Droettboom wrote: SciPy 2013 was a great success. I didn't get good headcount at the matplotlib BOF, but it was a good number, and we had 15 participants at various points during the sprints. It was nice to see the diversity of experience with matplotlib at the

Re: [Matplotlib-users] Reports from SciPy 2013

2013-07-02 Thread Michael Droettboom
On 07/02/2013 10:04 AM, Jason Grout wrote: On 7/1/13 9:33 AM, Michael Droettboom wrote: SciPy 2013 was a great success. I didn't get good headcount at the matplotlib BOF, but it was a good number, and we had 15 participants at various points during the sprints. It was nice to see the

[Matplotlib-users] bug (annoyance) and fix in DraggableAnnotation.finalize_offset()

2013-07-02 Thread Valentine Cooper, Jo
Ran into a bug this morning with draggable annotations. It would seem that finalize_offset() forcibly overrides the annotation's textcoords status to axes fraction so it can set the coordinates properly. That's all well and good, but if you were using some text coordinates system other than axes

[Matplotlib-users] matplotlib user survey 2013

2013-07-02 Thread Michael Droettboom
[Apologies for cross-posting] The matplotlib developers want to hear from you! We are conducting a user survey to determine how and where matplotlib is being used in order to focus its further development. This should only take a couple of minutes. To fill it out, visit:

Re: [Matplotlib-users] bug (annoyance) and fix in DraggableAnnotation.finalize_offset()

2013-07-02 Thread Valentine Cooper, Jo
Šand this afternoon, shortly after I sent this email, my test cases for this approach abruptly stopped functioning. Whoops. So y'all may want to hold off on this. (I thought it looked too easyŠ) Been that kind of day. :) -jo On 7/2/13 11:57 AM, Valentine Cooper, Jo

[Matplotlib-users] Basemap transform_vector for decreasing latitudes

2013-07-02 Thread kmanross
Greetings! Relative newbie here. I'm trying to plot wind vectors using basemap quiver and to fit my ortho projection. This is essentially a hack of Jeff Whitaker's animate.py found at https://github.com/matplotlib/basemap/blob/master/examples/animate.py The data source I'm connecting to,

Re: [Matplotlib-users] bisecting triangulation

2013-07-02 Thread zetah
On вторник, 02 јули 2013 at 11:04 AM, Ian Thomas wrote: You need to use a matplotlib.tri.Triangulation (your use of triplot does this for you behind the scenes anyway), something like: import matplotlib.tri as mtri triang = mtri.Triangulation(xpoints, ypoints) Now triang.triangles is an array