drawing an arrow

Ryan Krauss wrote:

I would like to draw one arrow on a plot as part of a label.

Does anyone have a better way to do this?

I've enclosed a message sent to matplotlib-devel, including the attached code. maybe it will help, I haven't had a chance to try it out yet.

-Chris

arrow_cgi.py (3.06 KB)

arrow_plot.py (8.8 KB)

fancy_arrow.py (2.82 KB)

···

-------- Original Message --------
Subject: Fancy arrows for matplotlib
Date: Tue, 31 Jan 2006 16:03:13 -0700
From: Fernando Perez <Fernando.Perez@...179...>
Organization: Applied Mathematics, University of Colorado at Boulder
To: matplotlib development list <matplotlib-devel@lists.sourceforge.net>, Chris Barker <Chris.Barker@...259...>, Rob Knight <rob@...978...>

Hi all,

I thought I had sent this code on Sunday, but apparently it didn't make it to
the list. Apologies if it arrives twice.

This code was contributed by Rob Knight, from the biochemistry dept. at CU
Boulder, to draw nice arrows with a lot of control.

You can see an example here (just paste the example data):

http://bayes.colorado.edu/cgi-bin/arrows/arrow_cgi.py

Both a CGI and a command line demo are attached, as well as the underlying
arrow-drawing code. It would be great if this could be integrated into mpl
for the future.

Cheers,

f

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...