Images as markers in matplotlib?

Hey y'all,

I recently read about Chernoff faces
(http://en.wikipedia.org/wiki/Chernoff_face) in one of Edward Tufte's
books (great read btw) and would like to mess around with them in
matplotlib. My current approach is to generate the faces as images,
and then use them as markers on an x-y plot (like the example I
found in the Tufte book). I just realized, though, that I have no idea how to
incorporate images as position markers in matplotlib, or if it's even
possible. My search of the mpl docs didn't turn up much.

Any ideas?

--Joshua Holbrook

Images can placed at arbitrary position (using the extent keyword).
I think this is enough as far as you're careful with the aspect.
Looking at the wikipedia example, I don't see any reason that this
cannot be done with matplotlib.
Regards,

-JJ

···

On Wed, Sep 8, 2010 at 6:34 AM, Joshua Holbrook <josh.holbrook@...287...> wrote:

Hey y'all,

I recently read about Chernoff faces
(http://en.wikipedia.org/wiki/Chernoff_face) in one of Edward Tufte's
books (great read btw) and would like to mess around with them in
matplotlib. My current approach is to generate the faces as images,
and then use them as markers on an x-y plot (like the example I
found in the Tufte book). I just realized, though, that I have no idea how to
incorporate images as position markers in matplotlib, or if it's even
possible. My search of the mpl docs didn't turn up much.

Any ideas?

--Joshua Holbrook

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

There was a thread called "Placing images on figures" with a bunch of approaches...

http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg17278.html

···

On Sep 7, 2010, at 7 Sep, 2:34 PM, Joshua Holbrook wrote:

Hey y'all,

I recently read about Chernoff faces
(http://en.wikipedia.org/wiki/Chernoff_face) in one of Edward Tufte's
books (great read btw) and would like to mess around with them in
matplotlib. My current approach is to generate the faces as images,
and then use them as markers on an x-y plot (like the example I
found in the Tufte book). I just realized, though, that I have no idea how to
incorporate images as position markers in matplotlib, or if it's even
possible. My search of the mpl docs didn't turn up much.

Any ideas?

--Joshua Holbrook

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Chloe Lewis
Ecosystem Sciences, Policy and Management, UC Berkeley
137 Mulford Hall
Berkeley, CA 94720-3114
http://nature.berkeley.edu/~chlewis