Graphing in an existing PyGTK window

I've just tried Matplotlib for the first time, for plotting on the screen,
and the examples all seem to pop up a new window with interactive tools,
like Matlab does. That's very nice, but what I need is to create a static
plot that appears in some sort of widget in an existing window created
with PyGTK, without any of the controls. Is there a page that shows how
this can be done? Is it even possible?

···

--

Ciao, Paul D. DeRocco
Paul mailto:pderocco@…4436…

Hi Paul,

        If you start python like below with qt console. You will get plots with out controls etc. You can right click on plots and save it as png. Else from command prompt as pdf as you wish.

ipython qtconsole --colors=linux --pylab=inline

···

From: Paul D. DeRocco <pderocco@…4436…>
To: Matplotlib list matplotlib-users@lists.sourceforge.net
Sent: Monday, 19 August 2013 1:17 PM
Subject: [Matplotlib-users] Graphing in an existing PyGTK window

I’ve just
tried Matplotlib for the first time, for plotting on the screen,
and the examples all seem to pop up a new window with interactive tools,
like Matlab does. That’s very nice, but what I need is to create a static
plot that appears in some sort of widget in an existing window created
with PyGTK, without any of the controls. Is there a page that shows how
this can be done? Is it even possible?

Ciao, Paul D. DeRocco
Paul mailto:pderocco@…4436…


Get 100% visibility into Java/.NET code with AppDynamics Lite!
It’s a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2%
overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

From: Sudheer Joseph [mailto:sudheer.joseph@…9…]

            If you start python like below with qt console.
You will get plots with out controls etc. You can right click
on plots and save it as png. Else from command prompt as pdf
as you wish.

ipython qtconsole --colors=linux --pylab=inline

That's not what I meant. I'm not using ipython or qtconsole. This is for
an embedded system (Gumstix) with a small LCD. I have a program written in
PyGTK that fills the LCD with a single window with various buttons in it.
I want to display a plot in a pane in that window, not in a separate
window.

···

--

Ciao, Paul D. DeRocco
Paul mailto:pderocco@…4436…

2013/8/19 Paul D. DeRocco <pderocco@...4436...>:

I've just tried Matplotlib for the first time, for plotting on the screen,
and the examples all seem to pop up a new window with interactive tools,
like Matlab does. That's very nice, but what I need is to create a static
plot that appears in some sort of widget in an existing window created
with PyGTK, without any of the controls. Is there a page that shows how
this can be done? Is it even possible?

--

Ciao, Paul D. DeRocco
Paul mailto:pderocco@…4436…

Hi,
to reuse the matplotlib controls or just the plotting area, check the
examples on embedding in the demo pages:
http://matplotlib.org/examples/user_interfaces/embedding_in_gtk.html
or the others in the respective section:
http://matplotlib.org/examples/user_interfaces/index.html
(I don't use gtk myself, but I believe, it might be directly usable in
your code.)

hth,
  vbr

I'm not much of a matplotlib user, and started poking around for
"GtkSocket matplotlib". I'm not sure that's the right direction,
however, it eventually led me to this blog post which only exists now
in the Wayback Machine:

http://web.archive.org/web/20111005011905/http://www.serpia.org/blog/2007/nov/03/matplotlib-and-pygtk-app/

In it (a complete Gtk+matplotlib tutorial) he uses FigureCanvasGTK to
place the plot in the PyGtk app.

Skip

From: Vlastimil Brom [mailto:vlastimil.brom@…287…]

to reuse the matplotlib controls or just the plotting area, check the
examples on embedding in the demo pages:
http://matplotlib.org/examples/user_interfaces/embedding_in_gtk.html
or the others in the respective section:
http://matplotlib.org/examples/user_interfaces/index.html
(I don't use gtk myself, but I believe, it might be directly usable in
your code.)

That's just the ticket. Thanks.

···

--

Ciao, Paul D. DeRocco
Paul mailto:pderocco@…4436…