how to make chart using wxpython

343 views
Skip to first unread message

Hatem El-Zanaty

unread,
Feb 7, 2010, 6:14:27 AM2/7/10
to utahp...@googlegroups.com
hi all,
using python and wxpython how can i generate py charts or statistical reports with images integration using unicode characters
please send me a working example so that i can understand the trick. please help as soon as possible
Best Regards
hatem gamal

Byron Clark

unread,
Feb 8, 2010, 10:38:43 AM2/8/10
to utahp...@googlegroups.com
On Sun, Feb 07, 2010 at 01:14:27PM +0200, Hatem El-Zanaty wrote:
> using python and wxpython how can i generate py charts or statistical
> reports with images integration using unicode characters

I've found matplotlib[1] to be a great way to generate plots and charts.
It definitly supports unicode characters (or TeX math) in labels. You
can use it to generate images to display in your application, or you
could use the wxPython backend and include the plot viewer directly in
your application. The included documentation is great.

[1] http://matplotlib.sourceforge.net/

--
Byron Clark

Hatem El-Zanaty

unread,
Feb 9, 2010, 2:20:05 AM2/9/10
to utahp...@googlegroups.com
hi Byron
thanks for reply attached a sample from the site when trying to execute it i get this error
[shang1@localhost plot]$ ./embedding_in_gtk.py
Traceback (most recent call last):
  File "./embedding_in_gtk.py", line 9, in ?
    from matplotlib.figure import Figure
ImportError: No module named matplotlib.figure
[shang1@localhost plot]$
can you please guide me and send me the link from where to install that modules
thanks in advance
Best Regards
hatem gamal


--
Byron Clark

--
You received this message because you are subscribed to the Google Groups "Utah Python User Group" group.
To post to this group, send email to utahp...@googlegroups.com.
To unsubscribe from this group, send email to utahpython+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/utahpython?hl=en.


embedding_in_gtk.py

Byron Clark

unread,
Feb 9, 2010, 7:30:54 AM2/9/10
to utahp...@googlegroups.com
On Tue, Feb 09, 2010 at 09:20:05AM +0200, Hatem El-Zanaty wrote:
> thanks for reply attached a sample from the site when trying to execute it i
> get this error
> [shang1@localhost plot]$ ./embedding_in_gtk.py
> Traceback (most recent call last):
> File "./embedding_in_gtk.py", line 9, in ?
> from matplotlib.figure import Figure
> ImportError: No module named matplotlib.figure

The matplotlib examples will run much better if you actually _install_
matplotlib.

--
Byron Clark

Hatem El-Zanaty

unread,
Feb 9, 2010, 7:58:19 AM2/9/10
to utahp...@googlegroups.com
thanks man

Byron Clark

Kael

unread,
Feb 17, 2010, 11:11:53 AM2/17/10
to Utah Python User Group
I've been off the radar, but this thread caught my eye.

I'm not sure if I mentioned wxmpl in my last presentation, but no
matter. Check it out. It saves a lot of work integrating wxpython
and matplotlib.

It simply rocks: http://agni.phys.iit.edu/~kmcivor/wxmpl/documentation/reference/

Kael

> > utahpython+...@googlegroups.com<utahpython%2Bunsubscribe@googlegrou ps.com>

Reply all
Reply to author
Forward
0 new messages