Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Eric Firing
On 2015/05/26 9:10 AM, Benjamin Root wrote: > I think this is a feature/bug that got reverted in the master branch. > Perhaps you could try building matplotlib from source and seeing if the > problem goes away? Ben, it looks familiar, and related to a bizarre feature that I thought we had elimina

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Sterling Smith
Sean, Do you need an `annotate`, or just a `text`? `text` has the `transform` keyword, to which you can pass `ax.transAxes`. ax.text(.9,.9, r"$\mathbf{" + lab + ")}$”,transform=ax.transAxes,ha=‘right’,va=‘center’) -Sterling On May 26, 2015, at 10:06AM, Sean Lake wrote: > Hello all, > > I'

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Benjamin Root
I think this is a feature/bug that got reverted in the master branch. Perhaps you could try building matplotlib from source and seeing if the problem goes away? Cheers! Ben Root On Tue, May 26, 2015 at 3:00 PM, Sean Lake wrote: > Sterling, > > Thanks for the pointer. I've already used a workaro

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Sean Lake
Sterling, Thanks for the pointer. I've already used a workaround where I used "data" coordinates and put it at: 0.9 * (xmax - xmin) + xmin, and similar for y. I'm really only reporting this so that it can be fixed if there is someone who does need to annotate something in a grid. Sean > On Ma

[Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Sean Lake
Hello all, I'm using matplotlib 1.4.3 installed using fink with python 2.7. I'm trying to produce a grid of plots using gridspec that has annotations to label each plot. Here is the call to annotate the current axes: ax.annotate( r"$\mathbf{" + lab + ")}$", xy=(0.5*(xmin+xmax)

Re: [Matplotlib-users] annotate

2011-07-18 Thread Michael Droettboom
Thanks for the report. I have created a pull request with a solution for this bug here: https://github.com/matplotlib/matplotlib/pull/403 If you are able to build from git, test these changes and give me feedback in your specific environment, that would be great. Cheers, Mike On 07/14/2011 0

[Matplotlib-users] annotate

2011-07-14 Thread Christopher Brown
Hi, The following code displays a figure with both a red and a blue arrow (generated by annotate). But the pdf that is saved only shows the red one. It seems that the line ax1.set_xscale('log') is causing the trouble, because if it is commented out, the blue arrow reappears in the pdf. Any hin

Re: [Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-05-01 Thread Malte Dik
Hi, Pau > Hello, > > I am trying to print in the plot the value of a time variable which I > obtain like this > > Time = MBH_inst[0] # Column 1 > > This should be placed on the top right part of the plot showing the current > time > > Time = XXX yrs > > But I do not know how to pass t

Re: [Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-04-29 Thread Michael Droettboom
You could use Python string formatting, like so: ax.annotate('Time = %s' % Time, size=18, xy=(3, 1), xycoords='data', xytext=(0.8, 0.95), textcoords='axes fraction', horizontalalignment='right', verticalalignment='top', ) On 04/29/2011 06:54 AM, Pau wrote

[Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-04-29 Thread Pau
Hello, I am trying to print in the plot the value of a time variable which I obtain like this Time = MBH_inst[0] # Column 1 This should be placed on the top right part of the plot showing the current time Time = XXX yrs But I do not know how to pass this to ax.annotate: ax.annotate('Ti

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-12 Thread Michael Droettboom
On 11/09/2010 07:57 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 12:21 AM, Benjamin Root wrote: > >> On Tue, Nov 9, 2010 at 7:24 AM, Jae-Joon Lee wrote: >> >>> Thanks for tracking down this. >>> It turned out to be a silly error while adjusting the line end-point. >>> I'm attaching

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-10 Thread Michael Droettboom
On 11/10/2010 10:41 AM, Benjamin Root wrote: On Tue, Nov 9, 2010 at 8:44 PM, Jae-Joon Lee > wrote: On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout mailto:jason-s...@creativetrax.com>> wrote: > Is the tip of the arrow (after the miter join) supposed to

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-10 Thread Benjamin Root
On Tue, Nov 9, 2010 at 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > wrote: > > Is the tip of the arrow (after the miter join) supposed to hit (1,1), or > is > > the center of the line supposed to hit (1,1)? Or maybe the tip of the > > joinstyle='round' arrow (th

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
On 11/9/10 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > wrote: >> Is the tip of the arrow (after the miter join) supposed to hit (1,1), or is >> the center of the line supposed to hit (1,1)? Or maybe the tip of the >> joinstyle='round' arrow (the default) is supp

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jae-Joon Lee
On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout wrote: > Is the tip of the arrow (after the miter join) supposed to hit (1,1), or is > the center of the line supposed to hit (1,1)?  Or maybe the tip of the > joinstyle='round' arrow (the default) is supposed to hit (1,1)? > The tip of the arrow is me

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jae-Joon Lee
On Wed, Nov 10, 2010 at 12:21 AM, Benjamin Root wrote: > On Tue, Nov 9, 2010 at 7:24 AM, Jae-Joon Lee wrote: >> >> Thanks for tracking down this. >> It turned out to be a silly error while adjusting the line end-point. >> I'm attaching the patch. Please test the patch if you can. >> I'll commit t

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
On 11/9/10 9:21 AM, Benjamin Root wrote: > I just tested out the patch, and while it did seem to fix the problem for me > on the test script, I am not 100% certain that it is properly lined up > (maybe an off-by-one-pixel error?). Anyway, I tried zooming in to see which > kind of error it was and

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jae-Joon Lee
Thanks for tracking down this. It turned out to be a silly error while adjusting the line end-point. I'm attaching the patch. Please test the patch if you can. I'll commit the change sometime tomorrow. Regards, -JJ On Tue, Nov 9, 2010 at 9:15 PM, Jason Grout wrote: > I've been trying to track

[Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
I've been trying to track down a problem in the arrows where the arrow seems to be off by a little bit. I've narrowed down the problem to a small example: import matplotlib.patches as mpatches import matplotlib.pyplot as plt fig=plt.figure() ax = fig.add_subplot(111, xlim=(.98,1.02), ylim=(.98,

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 4:13 PM, Kurt Forrester wrote: > Just to add one more query to the thread, do you consider a point on a > vertex of the axes to be a candidate for annotation without clipping? That > is to say if there is a point (0,0) I wish to annotate, and the origin of > the axes contai

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Kurt Forrester
> From: lee.j.j...@gmail.com > Date: Thu, 21 Jan 2010 13:21:41 -0500 > Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing > To: kurtforres...@hotmail.com > CC: matplotlib-users@lists.sourceforge.net > > On Thu, Jan 21, 2010 at 12:53 PM, Kurt Forrester &g

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 12:53 PM, Kurt Forrester wrote: > Sorry the text IS drawn in the second example. So the setting of the > attribute after it is drawn (before it is shown) seems to do the trick. > > Kurt It seems that somehow the annotation_clip parameter is ignored when it is given during

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Kurt Forrester
> From: lee.j.j...@gmail.com > Date: Thu, 21 Jan 2010 10:46:00 -0500 > Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing > To: kurtforres...@hotmail.com > CC: matplotlib-users@lists.sourceforge.net > > On Thu, Jan 21, 2010 at 9:37 AM, Kurt Forrester &g

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 9:37 AM, Kurt Forrester wrote: > The first one reported None. > The second one reported False. And the text is still not drawn with the second example? -JJ -- Throughout its 18-year history, RSA

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Kurt Forrester
> From: lee.j.j...@gmail.com > Date: Wed, 20 Jan 2010 17:35:21 -0500 > Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing > To: kurtforres...@hotmail.com > CC: matplotlib-users@lists.sourceforge.net > > On Wed, Jan 20, 2010 at 3:07 PM, Kurt Forrester >

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-20 Thread Jae-Joon Lee
On Wed, Jan 20, 2010 at 3:07 PM, Kurt Forrester wrote: > the output from the script is: > > annotation_clip =  None > checking is point is inside the axes :  [  30.875  233.   ] > contains_point =  0 > _check_xy returning False > exit without drawing due to annotation_clip > > Weird. How about th

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-20 Thread Kurt Forrester
> From: lee.j.j...@gmail.com > Date: Wed, 20 Jan 2010 13:50:45 -0500 > Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing > To: kurtforres...@hotmail.com > CC: matplotlib-users@lists.sourceforge.net > > On Wed, Jan 20, 2010 at 1:13 PM, Kurt Forrester >

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-20 Thread Jae-Joon Lee
On Wed, Jan 20, 2010 at 1:13 PM, Kurt Forrester wrote: > I am not too sure what the design behaviour is but it is certainly not doing > what I expected. I do appreciate your effort in resolving this. Please do > let me know if there are any further tests I can perform to demonstrate the > issue or

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-20 Thread Jae-Joon Lee
On Tue, Jan 19, 2010 at 3:08 PM, Kurt Forrester wrote: > Additional information that I forgot to supply was that on python > 2.5/windows/matplotlib 0.98.xxx (my work machine, not accessible at the > moment for the subversion number) this worked fine and there may have been a > regression from this

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-19 Thread Kurt Forrester
when the world changed for these arrows. Finally, can you reproduce the phenomenon that I see on your install of matplotlib? Thank you very much for the guidance, Kurt > From: lee.j.j...@gmail.com > Date: Tue, 19 Jan 2010 08:52:24 -0500 > Subject: Re: [Matplotlib-users] Ann

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-19 Thread Jae-Joon Lee
On Tue, Jan 19, 2010 at 2:48 AM, Kurt Forrester wrote: > I modified the script for the hax. annotate(...) to include the > annotate_clip=False, however there is no change in the behaviour of the > arrows. It should be "annotation_clip" not "annotate_clip", but it may be just a typo. Anyhow, as f

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-18 Thread Kurt Forrester
Is anybody else experiencing the same issue? Is there another setting that I my tweak to overcome this? Kind Regards, Kurt > From: lee.j.j...@gmail.com > Date: Mon, 18 Jan 2010 19:18:31 -0500 > Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing > To: kurtfo

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-18 Thread Jae-Joon Lee
This is the feature that is not properly documented. You should call annotate with optional keyword annotation_clip=False, See below for the details. http://matplotlib.sourceforge.net/api/artist_api.html?highlight=annotation#matplotlib.text.Annotation.set_annotation_clip I'll fix the do

[Matplotlib-users] annotate x-axis

2009-12-11 Thread Neal Becker
How should I put some text marking a position on the x-axis? -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _

[Matplotlib-users] Annotate with icon

2009-07-30 Thread Bas van Leeuwen
Hi all, Is there any way to annotate a plot with icons? The only way to include an image that I've found is using imshow, but imshow does not accept (x,y) coordinates. There probably is an easy solution, but I have not been able to find any. Please be patient :-) Thank you in advance for your re