draw upper and lower limits

Hi,
I have some graphs with lower and upper limits. I found a couple of ideas online, but nothing like "plotting symbols" like arrows.
I am using the mathtex upperarrow symbol but it is quite unconfortable positioning the tex character in the righ X-Y position.
Do you know if there is an easier way to plot arrows as "markers"?

Thanks,
Nino

···

--

Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/

Antonino Cucchiara wrote:

Hi,
I have some graphs with lower and upper limits. I found a couple of ideas online, but nothing like "plotting symbols" like arrows.
I am using the mathtex upperarrow symbol but it is quite unconfortable positioning the tex character in the righ X-Y position.
Do you know if there is an easier way to plot arrows as "markers"?

Thanks,
Nino

Have a look at examples/pylab_examples/errorbar_limits.py. This shows how to plot upper/lower limits errorbars ... (if this is what you need)

If you're like me and what you want is just an arrow mark with its
head at (x,y), you may use scatter() with custom verts.

    arrowup_verts = [[0.,0.], [-1., -1], [0.,0.], [0.,-2.],[0.,0.], [1, -1]]
    arrowdown_verts = [[0.,0.], [-1., 1], [0.,0.], [0.,2.],[0.,0.], [1, 1]]

    scatter([1.],[1.], s=100, marker=None,
            verts=arrowup_verts)

    scatter([1],[1.1], s=100, marker=None,
            verts=arrowdown_verts)

-JJ

···

On Thu, Jul 31, 2008 at 9:41 AM, Antonino Cucchiara <cucchiara@...2006...> wrote:

Hi,
I have some graphs with lower and upper limits. I found a couple of
ideas online, but nothing like "plotting symbols" like arrows.
I am using the mathtex upperarrow symbol but it is quite unconfortable
positioning the tex character in the righ X-Y position.
Do you know if there is an easier way to plot arrows as "markers"?

Thanks,
Nino

--

Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users