[Tutor] Pysces Problem

Mateusz KoryciƄski mat.korycinski at gmail.com
Sat Dec 10 11:12:38 CET 2011


Hi,

Does any of you use Pysces? I need to run some simulations and 
unfortunately I cannot create plot. After importing Pysces it claims 
that Matplotlib is not available, but it's installed for sure since I 
can import  matplotlib. When I try to do plot after simulation:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/mateusz/Pysces/<ipython-input-11-d979049976f5> in <module>()
----> 1 mod.doSimPlot()

/usr/lib/python2.7/site-packages/pysces/PyscesModel.pyc in 
doSimPlot(self, end, points, plot, fmt, filename)
    5584         self.sim_points = points
    5585         self.Simulate()
-> 5586         self.SimPlot(plot=plot, format=fmt, filename=filename)
    5587
    5588     def doSimPerturb(self,pl,end):

/usr/lib/python2.7/site-packages/pysces/PyscesModel.pyc in SimPlot(self, 
plot, filename, title, log, format)
    6955                 data, labels = self.data_sim.getSimData(*plot, 
**kwargs)
    6956         del allowedplots
-> 6957         plt.plotLines(data, 0, range(1, data.shape[1]), 
titles=labels, formats=[format])
    6958         # set the x-axis range so that it is original range + 
0.2*sim_end

    6959         # this is a sceintifcally dtermned amount of space that 
is needed for the title at the


AttributeError: 'NoneType' object has no attribute 'plotLines'

I've already exported matplotlib localization in ipython by: 
sys.path.append("/usr/lib/python2.7/site-packages/")

Thank you in advance for any help!

Cheers,
Mateusz


More information about the Tutor mailing list