|
From: Kurt F. <kur...@ho...> - 2010-01-19 07:48:35
|
JJ thanks for the tip unfortunately there was no change. 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. They are not visible until the xy=(a,b) have values for "a" and "b" that are both greater than their respective origin values (0,0), otherwise they remain clipped. I tested this by replacing the "true" value with (1.0e-10,1.0e-10) resulting in the arrow becoming visible. This is a feasible work around for this instance but it may not suit all applications. Is anybody else experiencing the same issue? Is there another setting that I my tweak to overcome this? Kind Regards, Kurt > From: lee...@gm... > Date: Mon, 18 Jan 2010 19:18:31 -0500 > Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing > To: kur...@ho... > CC: mat...@li... > > 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 documentation. > Regards, > > -JJ > > > On Mon, Jan 18, 2010 at 6:19 PM, Kurt Forrester > <kur...@ho...> wrote: > > Ubuntu Karmic > > matplotlib from repository > > Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) > > [GCC 4.4.1] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > >>>> import matplotlib as mpl > >>>> mpl.__version__ > > '0.99.0' > > > > Running the leach_kinetics.py script and annotating the graph should display > > two annotations indicating the position of relevant phenomena. However, > > attached are two outputs, 1) as_script.pdf shows the output of the script > > (note the missing annotations) and 2) a panned image showing the presence of > > the annotation when the origin is moved into the visible area of the axes. > > > > There seems to be some strange clipping behaviour (not too sure if that is > > the correct term) with respect the the drawing (or not) of the arrow. It > > appears that if the arrow begins or ends on the axes then it is not drawn. > > Verification of this and tips for a matplotlib tweak to prevent it from > > happening would also be appreciated? > > > > Kind Regards, > > > > Kurt > > > > ________________________________ > > If It Exists, You'll Find it on SEEK Shopping Trolley Mechanic > > ------------------------------------------------------------------------------ > > Throughout its 18-year history, RSA Conference consistently attracts the > > world's best and brightest in the field, creating opportunities for > > Conference > > attendees to learn about information security's most important issues > > through > > interactions with peers, luminaries and emerging and established companies. > > http://p.sf.net/sfu/rsaconf-dev2dev > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > _________________________________________________________________ Video chat with Windows Live Messenger Learn how http://windowslive.ninemsn.com.au/messenger/article/870686/video-chat-with-messenger |