[Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-28 Thread Markus Baden
Hi list, I'm trying to annotate points on a graph by drawing a simple line from the point on the axis to the top left corner of the text. I can't figure out, how to use pyplot.annotate so that it turns of the arrow head and I can use horizontalalignment (ha) and verticalalignment (va). When I use

Re: [Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-28 Thread Jae-Joon Lee
On Mon, Nov 28, 2011 at 9:39 PM, Markus Baden markus.ba...@gmail.com wrote: anno_args = {     'annotation_clip': False,     'arrowprops': dict(arrowstyle='-', relpos=(0, 1)),     } plt.annotate('Good relpos', (3, 3), xytext = (3, 2), **anno_args) plt.annotate('Bad relpos', (6, 6), xytext =

Re: [Matplotlib-users] Basemap drawparallels failed issue

2011-11-28 Thread Jeff Whitaker
On 11/22/11 12:51 PM, Dave Xia wrote: Hi, I am a new user of matplotlib Basemap. I tried to draw the latitude with interval 0.1 degree using drawparallels, but failed. I wonder if the drawparallels can draw latitude lines with small interval instead of integer values. (drawmeridian can

[Matplotlib-users] Possible bug processing events outisde

2011-11-28 Thread abccoeur . t . tos
Hello, On matplotlib's home, there is a demo ( a program called legend_picking.py ) were one can click on the lines in the legend of a plot to hide / unhide the corresponding plot lines. However there is a problem when the click takes place outside the main canvas (the white space). I made a

Re: [Matplotlib-users] Removing ticks and frame (imshow)

2011-11-28 Thread Tony Yu
On Thu, Nov 24, 2011 at 9:48 AM, Marianne C. mariyann...@gmail.com wrote: Hi all, My name is Marianne, I am a beginner user of matplotlib. I am using imshow in pyplot. I am desperate to get rid of the ticks on both x and y axes (see attached picture). I do not need the black box around

[Matplotlib-users] Removing ticks and frame (imshow)

2011-11-28 Thread Sterling Smith
From: Marianne C. mariyann...@gmail.com Date: November 24, 2011 6:48:34 AM PST To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] Removing ticks and frame (imshow) Hi all, My name is Marianne, I am a beginner user of matplotlib. I am using imshow in pyplot. I am

[Matplotlib-users] Specify plot xticks

2011-11-28 Thread Shankararaman Ramakrishnan
Hello, I am fairly new to Matplotlib and appreciate your help with my question: I am looking to generate a time series trend plots and include as my xtick labels a selective list of strings. For ex: Month/Year label for data corresponding to the 1st day of each month. I may be plotting

[Matplotlib-users] help with custom formatter rules

2011-11-28 Thread C M
As related to another question(s) I've posted, can someone help with this custom formatter? This is for use in a FunctionFormatter to be used on the y axis to format the ticks (in particular, to remove them when not wanted). Example: def CustomFormatter(self,y,i): if y 0:

[Matplotlib-users] Using Widgets, Extending imshow

2011-11-28 Thread Austin Godber
Hello, Are there examples of extending imshow or further customizing any of the UI components of matpotlib? Or anything you can point me at to get started? I have been able to connect events to imshow. An example of the type of thing I might want to do is to print the R,G,B value in a status

Re: [Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-28 Thread Markus Baden
This is a bug. In the current implementation, annotate has a side-effect that modifies the arrowprops dictionary. As a workaround, you may do, arrowprops = dict(arrowstyle='-', relpos=(0, 1)) plt.annotate('Good relpos', (3, 3), xytext = (3, 2), annotation_clip=False,