plot.plot() issue...unexpected keyword argument 'verts'
Hello,
I'm running Ubuntu 20.04. I seem to be running into a similar plotting error as documented in this previous thread:
https:/
I have tried the suggestions from the thread of uninstalling and reinstalling matplotlib version 3.1.2, as well as trying on yadedaily. Both seem to produce different errors.
Can anyone help with suggestions for fixing this issue? Example code and output below. Cheers,
Kevin
The example code/script I am running:
```
from yade import pack, plot
O.bodies.
sp = pack.SpherePack()
sp.makeCloud((0, 0, 0), (1, 1, 1), rMean=.05, rRelFuzz=.5)
sp.toSimulation()
O.engines = [
),
]
O.dt = .5 * PWaveTimeStep()
O.trackEnergy = True
def checkUnbalanced():
if unbalancedForce() < .05:
O.pause()
plot.
def addPlotData():
plot.addData(
kinetic_energy = sum([0.
avg_mass = numpy.average(
max_coord_
for b in O.bodies:
coord = len(b.intrs())
if coord > max_coord_
max_coord_
max_interaction
plot.plots = {'i': ('unbalanced', None, O.energy.keys)}
plot.plot()
O.saveTmp()
```
The output when I run with yade:
```
$ yade gravitydep.py
Welcome to Yade 2020.01a
Using python version: 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0]
TCP python prompt on localhost:9000, auth cookie `scdyka'
XMLRPC info provider on http://
Running script gravitydep.py
Traceback (most recent call last):
File "/usr/bin/yade", line 336, in runScript
execfile(
File "/usr/lib/
exec_(code, myglobals, mylocals)
File "gravitydep.py", line 79, in <module>
plot.plot()
File "/usr/lib/
createPlots
File "/usr/lib/
createLines
File "/usr/lib/
scatter=
File "/usr/local/
__ret = gca().scatter(
File "/usr/local/
return func(ax, *map(sanitize_
File "/usr/local/
collection.
File "/usr/local/
return self._update_props(
File "/usr/local/
raise AttributeError(
AttributeError: PathCollection.
[[ ^L clears screen, ^U kills line. F12 controller, F11 3D view (press "h" in 3D view for help), F10 both, F9 generator, F8 plot. ]]
Output with yadedaily:
```
$ yadedaily gravitydep.py
Welcome to Yade 20230525-
Using python version: 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0]
TCP python prompt on localhost:9000, auth cookie `ekusyc'
XMLRPC info provider on http://
Running script gravitydep.py
yade.plot: creating fake plot, since there are no y-data yet
WARNING:
[[ ^L clears screen, ^U kills line. F12 controller, F11 3D view (press "h" in 3D view for help), F10 both, F9 generator, F8 plot. ]]
Segmentation fault (core dumped)
```
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Kevin Kuei for more information if necessary.