Repeated plot.plot() fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
New
|
Wishlist
|
Unassigned |
Bug Description
Hi there,
Since bugs report get a lot of attention these days :-) let me add another one:
#######
from yade import plot
plot.addData(x = 1 , y = 5)
plot.plots = {'x':'y'}
plot.plot()
plot.plot()
#######
gives error messages (pointing to py/plot.py, see [*] below) at the second plot.plot() command.
It seems you can also replace any of the 2 plot.plot() (or both) with eg plot.plot(
I would prefer having the possibility to ask twice for a plot in one YADE session, what do you think ?
[*] Error message with yadedaily 2018.02b-
#######
AttributeError Traceback (most recent call last)
/usr/bin/yadedaily in <module>()
----> 1 plot.plot()
/usr/lib/
592 .. note:: For backwards compatibility reasons, *noShow* option will return list of figures for multiple figures but a single figure (rather than list with 1 element) if there is only 1 figure.
593 """
--> 594 createPlots(
595 global currLineRefs
596 figs=set(
/usr/lib/
370 def createPlots(
371 global currLineRefs
--> 372 figs=set(
373 for f in figs: pylab.close(f) # close those
374 currLineRefs=[] # remove older plots (breaks live updates of windows that are still open)
AttributeError: 'Line2D' object has no attribute 'get_axes'
#######
Changed in yade: | |
importance: | Undecided → Wishlist |
moved from https:/ /bugs.launchpad .net/yade/ +bug/1813782 to https:/ /gitlab. com/yade- dev/trunk/ issues/ 12