Embedding in existing application window

Greetings:

Is it possible to plot onto an existing application window? In particular, I'm developing a simple application under PythonCard whose main application window that already has a component that inherits from wxFloatCanvas (which in turn inherits, appropriately, from wxPanel). In broad strokes can anyone provide some hints, direction, main steps, ..... I feel a little clueless to tell the truth. I've looked at the WX, WXAgg backends but at first glance they are a little unyielding! I would appreciate any help .... anything at all!

Thanks in advance.
Frank

Smith, Frank wrote:

Is it possible to plot onto an existing application window? In particular,
I'm developing a simple application under PythonCard whose main application
window that already has a component that inherits from wxFloatCanvas (which in
turn inherits, appropriately, from wxPanel). In broad strokes can anyone
provide some hints, direction, main steps, ..... I feel a little clueless to
tell the truth. I've looked at the WX, WXAgg backends but at first glance they
are a little unyielding! I would appreciate any help .... anything at all!

There's a page on this topic in the matplotlib cookbook which ought to help you get started:

  http://www.scipy.org/wikis/topical_software/EmbeddingInWx

Ken

Smith, Frank wrote:

Greetings:

Is it possible to plot onto an existing application window?

I'm not entirely sure what you mean by this.

In
particular, I'm developing a simple application under PythonCard
whose main application window that already has a component that
inherits from wxFloatCanvas

Do you want to plot with MPL on top of the FloatCanvas? If so, that will be tricky. However, if you want to create another Panel, and plot to that, you want to look at the examples and docs for "embedding in wx" and similar titles.

By the way, I'm the author of FloatCanvas, so feel free to send me any questions, and let me know if you want the latest and greatest version.

-Chris

I've looked at the WX, WXAgg backends but at first glance they
are a little unyielding!

yup. If all goes well, you should be able to just use those without having to understand them!

-Chris

···

--
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...