← Back to team overview

yade-users team mailing list archive

Re: [Question #688945]: Compiled Yade plot error in batch mode on Ubuntu 18.04

 

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

Chareyre proposed the following answer:
Oh wait, isn't it just a change in different matplotlib versions? I've seen
such things. Try with a simple pyplot to confirm it is related to yade?
Bruno

Le dim. 23 févr. 2020 16:58, drasszkusz <
question688945@xxxxxxxxxxxxxxxxxxxxx> a écrit :

> New question #688945 on Yade:
> https://answers.launchpad.net/yade/+question/688945
>
> Hi all!
>
> I just compiled Yade from source code on a fresh Ubuntu 18.04. The problem
> is that in batch mode I have plot error and thus I can not see any plots.
> In not batch mode, plotting works fine. I tried it on another computer with
> a freshly installed Ubuntu 18.04 on it and it is the same. Am I missing
> something, like a not installed package? On Ubuntu 16.04 it works fine.
>
> Thanks,
> Daniel
>
> Here are the error messages:
>
> Traceback (most recent call last):
>   File
> "/home/user/dem/install/lib/x86_64-linux-gnu/yade-2019-10-11.git-e66c03c/py/yade/remote.py",
> line 36, in plot
>     fig=plot.plot(subPlots=True,noShow=True)
>   File
> "/home/user/dem/install/lib/x86_64-linux-gnu/yade-2019-10-11.git-e66c03c/py/yade/plot.py",
> line 594, in plot
>     createPlots(subPlots=subPlots)
>   File
> "/home/user/dem/install/lib/x86_64-linux-gnu/yade-2019-10-11.git-e66c03c/py/yade/plot.py",
> line 372, in createPlots
>     figs=set([l.line.get_axes().get_figure() for l in currLineRefs]) # get
> all current figures
> AttributeError: 'Line2D' object has no attribute 'get_axes'
> Error updating plots:
> Traceback (most recent call last):
>   File
> "/home/user/dem/install/lib/x86_64-linux-gnu/yade-2019-10-11.git-e66c03c/py/yade/remote.py",
> line 36, in plot
>     fig=plot.plot(subPlots=True,noShow=True)
>   File
> "/home/user/dem/install/lib/x86_64-linux-gnu/yade-2019-10-11.git-e66c03c/py/yade/plot.py",
> line 594, in plot
>     createPlots(subPlots=subPlots)
>   File
> "/home/user/dem/install/lib/x86_64-linux-gnu/yade-2019-10-11.git-e66c03c/py/yade/plot.py",
> line 372, in createPlots
>     figs=set([l.line.get_axes().get_figure() for l in currLineRefs]) # get
> all current figures
> AttributeError: 'Line2D' object has no attribute 'get_axes'
>
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>

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