yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15143
Re: [Question #643666]: plot.plot giving QObject::connect: cannot connect (apt-get installed yade)
Question #643666 on Yade changed:
https://answers.launchpad.net/yade/+question/643666
Status: Answered => Open
Andrea Puglisi is still having a problem:
"Line by line" was just to specify that I ensured to have the correct
indentation. I had not realized that I do not need to copypaste from the
website, since the file is in /usr/share/doc/yade/examples. If I launch
with just
> yade simple-scene-plot.py
I get:
Welcome to Yade 2016.06a
TCP python prompt on localhost:9001, auth cookie `ecdays'
XMLRPC info provider on http://localhost:21001
Running script simple-scene-plot.py
Now calling plot.plot() to show the figures. The timestep is artificially
low so that you can watch graphs being updated live.
QObject::connect: Cannot connect NavigationToolbar2QT::message(QString) to
(null)::_show_message()
Traceback (most recent call last):
File "/usr/bin/yade", line 182, in runScript
execfile(script,globals())
File "simple-scene-plot.py", line 46, in <module>
plot.plot(subPlots=False)
File "/usr/lib/x86_64-linux-gnu/yade/py/yade/plot.py", line 592, in plot
createPlots(subPlots=subPlots)
File "/usr/lib/x86_64-linux-gnu/yade/py/yade/plot.py", line 380, in
createPlots
if not subPlots: pylab.figure()
File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 527,
in figure
**kwargs)
File
"/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py",
line 43, in new_figure_manager
return new_figure_manager_given_figure(num, thisFig)
File
"/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py",
line 51, in new_figure_manager_given_figure
return FigureManagerQT(canvas, num)
File
"/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line
465, in __init__
self.toolbar.message.connect(self._show_message)
TypeError: connect() failed between NavigationToolbar2QT.message[str] and
_show_message()
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key
for showing help), F10 both, F9 generator, F8 plot. ]]
On Wed, Jun 14, 2017 at 2:23 PM, Bruno Chareyre <
question643666@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Your question #643666 on Yade changed:
> https://answers.launchpad.net/yade/+question/643666
>
> Status: Open => Answered
>
> Bruno Chareyre proposed the following answer:
> >1) If I launch yade and immediately press F8
>
> In this situation there is nothing to plot, hence the message
> "warnings.warn('plot.plot not showing figure"
>
> >2) If I launch yade and paste (line by line) the example
>
> Why do you specify "line by line"? Does it mean that simply running the
> script is not giving the error?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/yade/+question/643666/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/yade/+question/643666
>
> You received this question notification because you asked the question.
>
--
You received this question notification because your team yade-users is
an answer contact for Yade.