Re: [Matplotlib-users] Clabel conflicts with contourf

2014-01-30 Thread Eric Firing
On 2014/01/30 1:10 AM, Alexis Praga wrote: > Hi, > > I've attached a reproducible example : when clabel is used, there are some > empty (i.e white) triangles in the countour. > It does not occur without clabel. Thanks for the report--but clabel is intended to be used only with contour, not with

[Matplotlib-users] Clabel conflicts with contourf

2014-01-30 Thread Alexis Praga
Hi, I've attached a reproducible example : when clabel is used, there are some empty (i.e white) triangles in the countour. It does not occur without clabel. Tested with matplotlib 1.2.0, python 2.7 on Fedora 14, 64 bits. Cheers, -- Alexis Praga, PhD Student (CERFACS) GPG key : AD4A AF6D BB5

[Matplotlib-users] clabel like labels for normal line plots

2011-03-12 Thread Sebastian Berg
Hey, I have a family of curves to plot. They all look somewhat similar and hardly cross, but a parameter is changed, so adding labels to them in a contour plot fashion would be cool. I will just do this by hand now likely, but as clabels works nice I was wondering if this can be used or abused for

Re: [Matplotlib-users] clabel manual

2010-02-06 Thread Jae-Joon Lee
The above version has some typos (while it works it had some side-effects), here is the corrected one. -JJ import matplotlib.blocking_input as blocking_input if blocking_input.BlockingMouseInput.add_click == blocking_input.BlockingContourLabeler.add_click: def mouse_event_stop(self, event ):

Re: [Matplotlib-users] clabel manual

2010-02-06 Thread David Arnold
JJ, Very nice repair, as this works precisely as it should. I use this tool in Matlab all the time when teaching multivariable calculus. D. On Feb 6, 2010, at 2:41 PM, Jae-Joon Lee wrote: > This is a known bug, and I think I fixed it in the svn. Meanwhile, you > may use the monkey patching. >

Re: [Matplotlib-users] clabel manual

2010-02-06 Thread Jae-Joon Lee
This is a known bug, and I think I fixed it in the svn. Meanwhile, you may use the monkey patching. Insert these lines in your script (before you call clabel). Regards, -JJ import matplotlib.blocking_input as blocking_input def mouse_event_stop(self, event ): blocking_input.BlockingInput.po

[Matplotlib-users] clabel manual

2010-02-05 Thread David Arnold
Hi, I'm trying to get manual labeling of contours to work: import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)

Re: [Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-29 Thread Matthias Michler
Hi JJ, Bugs item #2922835, was opened at 2009-12-29 15:29 Happy New Year! Kind regards, Matthias On Tuesday 29 December 2009 15:13:39 Matthias Michler wrote: > Hi JJ, > > I'm sorry for the late response - I was on chrismas holidays and in fact > even now I have not much time. > I tested you pat

Re: [Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-29 Thread Matthias Michler
Hi JJ, I'm sorry for the late response - I was on chrismas holidays and in fact even now I have not much time. I tested you patch and there arise labels - thanks a lot so far. Where should I post the bug report? on sourgeforge.net in the "Bug Tracking System" of matplotlib? Kind regards, Matth

Re: [Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-19 Thread Jae-Joon Lee
I can reproduce this bug with the current svn. Matthias, can you file a bug on this in the issue tracker? I think the bug is related with the changes made back in august. http://old.nabble.com/ginput-default-mouse-configuration-td24924861.html Attached is a quick fix, so please test it. I didn'

[Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-15 Thread Matthias Michler
Hello list, I run into trouble with the formelly working example ''ginput_manual_clabel.py'' or the following minimal example (in ipython -pylab) CS = plt.contour(reshape(arange(20)%3, (4, 5)), [0, 1, 2]) CL = plt.clabel( CS, manual=True ) First of all I get a DeprecationWarning during the sta

[Matplotlib-users] clabel placement

2009-11-16 Thread Jeffrey Fogel
Is there a way to define the label placements created by clabel? My problem is that the location of the automatic labels are almost impossible to read on my plot. I've tried adding "manual" to the call, but it doesn't seem to work on my computer. -Jeffrey

Re: [Matplotlib-users] clabel and bbox

2009-08-03 Thread Andres Luhamaa
Jae-Joon Lee wrote: On Sat, Aug 1, 2009 at 5:04 PM, Andres Luhamaa wrote: Thank You, but now I have another little annoying issue. Besides clabel I add some text manually to my plot with plt.text and sometimes the clabel and plt.text overlap, and no matter in which order I plot them, the str

Re: [Matplotlib-users] clabel and bbox

2009-08-02 Thread Jae-Joon Lee
On Sat, Aug 1, 2009 at 5:04 PM, Andres Luhamaa wrote: > Thank You, > > but now I have another little annoying issue. Besides clabel I add some > text manually to my plot with plt.text and sometimes the clabel and > plt.text overlap, and no matter in which order I plot them, the string > from clabel

Re: [Matplotlib-users] clabel and bbox

2009-08-01 Thread Andres Luhamaa
Thank You, but now I have another little annoying issue. Besides clabel I add some text manually to my plot with plt.text and sometimes the clabel and plt.text overlap, and no matter in which order I plot them, the string from clabel is always above the one from plt.text, but I would like, if

Re: [Matplotlib-users] clabel and bbox

2009-08-01 Thread Jae-Joon Lee
The clable command returns a list of Text instances. You need call set_bbox method for each of them. tl = clabel(...) for t in tl: t.set_bbox(dict(fc="y")) For clabels, which are often rotated, it may better to use fancy box style (the default bbox is not rotated even though the text is).

[Matplotlib-users] clabel and bbox

2009-08-01 Thread Andres Luhamaa
Hello! Is it possible to add a bbox behind a clabel, like one can do with a plt.text or something that would look similar? Best regards, Andres -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-D

[Matplotlib-users] clabel and rotation

2009-05-08 Thread Evan Mason
Hi, would it be possible to add a keyword to clabel to optionally switch off the angle fix in contour.py lines 384+? # Fix angle so text is never upside-down if rotation > 90: rotation = rotation - 180.0 if rotation < -90: rotation = 180.0 + rotation Some

Re: [Matplotlib-users] clabel return values

2009-01-06 Thread Jae-Joon Lee
I can't reproduce the error and I guess it is back end specific. Anyhow, the fontproperties object were created incorrectly and this may be cause of the problem. I just thought your original dictionary was in a correct form. So, test your code w/o fontproperties and see if your text is placed in a

Re: [Matplotlib-users] clabel return values

2009-01-06 Thread Michael Hearne
Jae-Joon - Thank you for your suggestion. I wasn't aware I needed the alignments. However, when I try your sample code in my script, I get a sequence of rendering errors if I use show() or savefig(): Traceback (most recent call last): File "/Library/Python/2.5/site-packages/matplotlib-0.98.

Re: [Matplotlib-users] clabel return values

2009-01-06 Thread Jae-Joon Lee
I guess you're missing vertical and horizontal alignment. Also, your font properties were not set correctly. The 4th argument of the text function is a color. fontdict2 = {'fontweight':'light', 'color': 'r', 'fontsize':fontsize} fp = FontProperties(fontdict2) labels = p

[Matplotlib-users] clabel return values

2009-01-06 Thread Michael Hearne
Is the list of return values from the clabel() function supposed to represent the position and orientation of the contour labels? I have a script below where I try to re-draw the contour labels using the Text objects in the list returned from clabel(), and they do not line up in my output. I'

Re: [Matplotlib-users] clabel

2008-10-26 Thread David Arnold
Eric et al, Very nice. However, I am running the latest Enthought EPD on Mac OS X 10.4.11 and I get this: In [6]: clabel(cs,inline=1,fontsize=10,manual=True) Select label locations manually using first mouse button. End manual selection with second mouse button. /Library/Frameworks/Python.frame

Re: [Matplotlib-users] clabel

2008-10-25 Thread Eric Firing
David Arnold wrote: > All, > > Does Matplotlib have a form of the clabel command that uses the > switch manual, as in Matlab: > > [c,h]=contour(x,y,z); > clabel(c,h,'manual') > > Which allows the user to pick the contours to label with the mouse? Yes, this was added recently by David Kaplan.

[Matplotlib-users] clabel

2008-10-25 Thread David Arnold
All, Does Matplotlib have a form of the clabel command that uses the switch manual, as in Matlab: [c,h]=contour(x,y,z); clabel(c,h,'manual') Which allows the user to pick the contours to label with the mouse? David Arnold College of the Redwoods http://msemac.redwoods.edu/~darnold/index.php

[Matplotlib-users] clabel Formatter

2008-02-22 Thread Stephane Raynaud
Hi, what is the best way to use a Formatter for contour labels (clabel) instead of using simple formatting ('%g')? Should we derive a class from ContourLabeler and do things by hand? It would be useful for example for showing labels from power(10.,level) and you plot logarithmic values. Thanks f

Re: [Matplotlib-users] clabel font

2007-08-15 Thread Darren Dale
On Tuesday 14 August 2007 07:18:58 am [EMAIL PROTECTED] wrote: > Dear all, > > I am making a contour plot using matplotlib. The title and axis annotations > require math symbols so I set usetex=True in the rc('text',usetex). > However that made ALL texts in LaTeX (incl. contour labels) and > the co

[Matplotlib-users] clabel font

2007-08-14 Thread frigoris . ma
Dear all, I am making a contour plot using matplotlib. The title and axis annotations require math symbols so I set usetex=True in the rc('text',usetex). However that made ALL texts in LaTeX (incl. contour labels) and the contour labels look not satisfying when rendered by TeX. What I needed is La

Re: [Matplotlib-users] clabel and basemap

2007-04-02 Thread Jeff Whitaker
Simon Kammerer wrote: > Hi list, > > > when using clabel with basemap, it seems to me that clabel labels > contours outside the visible area of my maps, (see attached example). > > Any hints / workarounds? Or am I missing something? > > Regards > Simon > > > Simon: Yes, that's right - much of

[Matplotlib-users] clabel and basemap

2007-04-02 Thread Simon Kammerer
Hi list, when using clabel with basemap, it seems to me that clabel labels contours outside the visible area of my maps, (see attached example). Any hints / workarounds? Or am I missing something? Regards Simon [Modified wiki_example.py, labels visible with ortho projection, labels not visi

Re: [Matplotlib-users] clabel

2006-11-30 Thread Eric Firing
Curtis, clabel works as it should in contour_demo.py, so please post a simplest-possible example showing the problem. Also specify what mpl version you are using. Thanks. Eric Curtis Cooper wrote: > Hi, > > I'm using clabel to label contour plots, but when I use the 'inline' > option, the c

[Matplotlib-users] clabel

2006-11-30 Thread Curtis Cooper
Hi, I'm using clabel to label contour plots, but when I use the 'inline' option, the contour lines break up. That is, they stop going in the direction they were going. I'm wondering if there's a bug in the line collection routine for this option. Thanks, Curtis * * * * * * * * * * * * *