[Matplotlib-users] problems saving as pdf in Snow Leopard using python 2.7.1 from python.org

2011-06-05 Thread Angel Yanguas-Gil
Hi, I am running matplotlib 1.0.0 on python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13) in snow leopard from python.org and I have come across a problem saving pdf files. Trying the simple script: import matplotlib.pyplot as pt pt.plot([1, 2, 3]) pt.savefig("figure.pdf") Causes a bus error and a

[Matplotlib-users] fixing figure size on wxpython app

2011-06-05 Thread Carlos Grohmann
Hi all, I'm developing an app for structural geology called OenStereo ( www.igc.usp.br/openstereo), using matplotlib and wxpython. So far, I'm really happy with the results, but there is still one thing annoying me: when I save the plots (using the save icon in the NavigationToolbar), the resultin

Re: [Matplotlib-users] Plotting in loop problem, not refreshing

2011-06-05 Thread Daπid
I am using MPL 1.0.1 with Python 2.6 over Windows XP and it works. I would like to add an advice: range(n) creates a list of size n, and stores it in memory. But in your code you are only using one number at a time. Python has a better instruction: xrange. It works exactly like range, but doesn't