copied text

Hello!

I’m new to matplotlib and want to draw a line chart. Everythings works fine with the great matplotlib. Now my question:

I would like to draw under the diagramm a text, which can be selected and copied. Is this possible? I guess the easiest way is to do it over a GUI (I’m using wxPython). Please let me now if there’s another (easier) way!

Kind regards

Stefanie

There isn't a way to do this in matplotlib itself -- none of the text matplotlib draws is interactive and selectable etc.

However, if you're embedded matplotlib in a wxPython GUI, you could stick a wxPython text widget underneath the plotting canvas and put whatever text you need there. The details of that are more of a wxPython issue than a matplotlib one -- but you can see a number of examples of embedding matplotlib inside of a wxPython GUI here:

http://matplotlib.sourceforge.net/examples/user_interfaces/index.html

Cheers,
Mike

Stefanie L�ck wrote:

···

Hello!
I'm new to matplotlib and want to draw a line chart. Everythings works fine with the great matplotlib. Now my question:
I would like to draw under the diagramm a text, which can be selected and copied. Is this possible? I guess the easiest way is to do it over a GUI (I'm using wxPython). Please let me now if there's another (easier) way!
Kind regards
Stefanie
------------------------------------------------------------------------

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com
------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Michael Droettboom wrote:

examples of embedding matplotlib inside of a wxPython GUI here:

http://matplotlib.sourceforge.net/examples/user_interfaces/index.html

I'd also check out wxMPL, it's a nice way to embedMPL in a GUI:

http://agni.phys.iit.edu/~kmcivor/wxmpl/

-CHB

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...