Crosshairs

Hi,

I see that scatter() has a variety of different symbols that you can choose from, and even a way to create your own custom markers. However, I can't figure out how to make a crosshair symbol (a plus with non-touching lines) as my marker, which I'd like to use to show the location of a star on an underlying image without obscuring the star itself.

Graphically, I'd like a marker symbol that looks like this...

          >

======= =======

          >

Does anyone know how to pull this off?

Thanks!

-- Paul

scatter() currently does not support arbitrary path as its marker. The
current marker customization is limited to what can be described by
RegularPolyCollection and etc. And the crosshair marker do not fit in
to this category.

I'm attaching a snippet of a code I have been using for an exactly
same purpose as yours (to mark stars).
I hope this is also useful for you.
It provide a scatter-like function that takes arbitrary path
(PathPatch as a matter of fact).

It would not be difficult to extend the matplotlib's scatter function
to support an arbitrary path. I may give it a try later this week.

Regards,

-JJ

crosshair.py (2.59 KB)

···

On Tue, Jul 28, 2009 at 5:57 PM, Paul Ray<paul.ray@...706...> wrote:

Hi,

I see that scatter() has a variety of different symbols that you can
choose from, and even a way to create your own custom markers.
However, I can't figure out how to make a crosshair symbol (a plus
with non-touching lines) as my marker, which I'd like to use to show
the location of a star on an underlying image without obscuring the
star itself.

Graphically, I'd like a marker symbol that looks like this...

     &gt;
     &gt;
     &gt;

======= =======

     &gt;
     &gt;
     &gt;

Does anyone know how to pull this off?

Thanks!

-- Paul

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users