monoped wrote:
> 
> Hi,
> 
> being a complete newbie, I tried to run the simple_plot example from the 
> website with matplotlib-0.99.0. However, I get the error message:
> 
> --------------------------------------------------------------------
> Traceback (most recent call last):
>    File "simple_plot.py", line 5, in <module>
>      plot(t, s, linewidth=1.0)
>    File "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 
> 2135, in plot
>      ax = gca()
>    File "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 
> 582, in gca
>      ax =  gcf().gca(**kwargs)
>    File "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 
> 276, in gcf
>      return figure()
>    File "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 
> 254, in figure
>      **kwargs)
>    File 
> "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py", 
> line 44, in new_figure_manager
>      return FigureManagerGTKAgg(canvas, num)
>    File 
> "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", 
> line 443, in __init__
>      self.window.set_icon_from_file(window_icon)
> glib.GError: Couldn't recognize the image file format for file 
> '/usr/lib/python2.6/site-packages/matplotlib/mpl-data/images/matplotlib.svg'
> --------------------------------------------------------------------
> 
I had the same problem, and I fixed it by installing librsvg2-gtk (which
allows GTK to use SVG).  Hope this helps!
-- 
View this message in context: 
http://www.nabble.com/Histogram-example-doesn%27t-run-tp24861750p25244040.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to