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
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
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
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 ):
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.
>
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
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)
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
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
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'
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
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
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
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
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
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).
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
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
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
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.
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
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'
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
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.
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
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
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
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
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
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
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
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
* * * * * * * * * * * * *
32 matches
Mail list logo