← Back to team overview

yade-users team mailing list archive

Re: [Question #668081]: Problem with matplotlib.pyplot

 

Question #668081 on Yade changed:
https://answers.launchpad.net/yade/+question/668081

    Status: Answered => Open

Son Pham Thai is still having a problem:
Hi Jérôme,

Thank you for the YADE installation clarification and I am sorry for my
wrong description regarding "yade-daily package".

Considering the YADE version I have now:
$ ./yade-Unknown
Welcome to Yade Unknown 

DEBUG /home/son/Desktop/myYade/trunk/core/Omega.hpp:106 Omega:
Constructing Omega.

DEBUG /home/son/Desktop/myYade/trunk/core/Omega.cpp:209 loadPlugins:
Loading plugin /home/son/Desktop/myYade/install/lib/x86_64-linux-gnu
/yade-Unknown/libyade.so

DEBUG /home/son/Desktop/myYade/trunk/core/Omega.cpp:134
buildDynlibDatabase: called with 299 plugins.

...

DEBUG /home/son/Desktop/myYade/trunk/pkg/dem/FlatGridCollider.cpp:44 initIndices: sphereIdx=1
DEBUG /home/son/Desktop/myYade/trunk/pkg/dem/FlatGridCollider.cpp:44 initIndices: sphereIdx=1

TCP python prompt on localhost:9000, auth cookie `eyuscd'
XMLRPC info provider on http://localhost:21000
[[ ^L clears screen, ^U kills line. F8 plot. ]]

And by the way, when I press F8, I got this error:

Yade [1]: import yade.plot; yade.plot.plot();
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
/home/son/Desktop/myYade/install/bin/yade-Unknown in <module>()
----> 1 import yade.plot; yade.plot.plot();

/home/son/Desktop/myYade/install/lib/x86_64-linux-gnu/yade-Unknown/py/yade/plot.pyc in plot(noShow, subPlots)
    595         global currLineRefs
    596         figs=set([l.line.axes.get_figure() for l in currLineRefs])
--> 597         if not hasattr(list(figs)[0],'show') and not noShow:
    598                 import warnings
    599                 warnings.warn('plot.plot not showing figure (matplotlib using headless backend?)')

IndexError: list index out of range

My initial desire is how to fix the error of this "plot" function.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.