About ops_vis
Moderators: silvia, selimgunay, Moderators
About ops_vis
Hello.
When I run the following example file, I get the following error:
https://openseespydoc.readthedocs.io/en ... ps-vis-ex2
Traceback (most recent call last):
File "demo_cantilever_3el_3d.py", line 69, in <module>
opsv.plot_model()
File "D:\Python38\lib\site-packages\openseespy\postprocessing\ops_vis.py", line 758, in plot_model
_plot_model_3d(node_labels, element_labels, offset_nd_label, axis_off,
File "D:\Python38\lib\site-packages\openseespy\postprocessing\ops_vis.py", line 706, in _plot_model_3d
ax.set_box_aspect((np.ptp(ax.get_xlim3d()),
AttributeError: 'Axes3DSubplot' object has no attribute 'set_box_aspect'
I would appreciate it if you could let me know.
When I run the following example file, I get the following error:
https://openseespydoc.readthedocs.io/en ... ps-vis-ex2
Traceback (most recent call last):
File "demo_cantilever_3el_3d.py", line 69, in <module>
opsv.plot_model()
File "D:\Python38\lib\site-packages\openseespy\postprocessing\ops_vis.py", line 758, in plot_model
_plot_model_3d(node_labels, element_labels, offset_nd_label, axis_off,
File "D:\Python38\lib\site-packages\openseespy\postprocessing\ops_vis.py", line 706, in _plot_model_3d
ax.set_box_aspect((np.ptp(ax.get_xlim3d()),
AttributeError: 'Axes3DSubplot' object has no attribute 'set_box_aspect'
I would appreciate it if you could let me know.
Re: About ops_vis
Hi.
I do confirm the bug. By shortly calling the code demo.py, my output is as follows:
Unfortunately, several scripts of the guide fail. Further details about the said statement? Please, contact me directly through the mail box zipped below:
Cheers
I do confirm the bug. By shortly calling the code demo.py, my output is as follows:
Code: Select all
C:\Training>python demo.py
Traceback (most recent call last):
File "demo.py", line 69, in <module>
opsv.plot_model()
File "C:\Users\Alfabeta\AppData\Local\Programs\Python\Python38\lib\site-packages\openseespy\postprocessing\ops_vi
s.py", line 758, in plot_model
_plot_model_3d(node_labels, element_labels, offset_nd_label, axis_off,
File "C:\Users\Alfabeta\AppData\Local\Programs\Python\Python38\lib\site-packages\openseespy\postprocessing\ops_vi
s.py", line 706, in _plot_model_3d
ax.set_box_aspect((np.ptp(ax.get_xlim3d()),
AttributeError: 'Axes3DSubplot' object has no attribute 'set_box_aspect'
Code: Select all
https://transfer.sh/1xCxtx3/address.rar
Re: About ops_vis
What version of matplotlib you are using? I use matplotlib ver. 3.3.4 and it works.
set_box_aspect option has been added to matplotlib 3.3, so you need at least this version to make it work.
https://matplotlib.org/stable/users/pre ... pect-ratio
set_box_aspect option has been added to matplotlib 3.3, so you need at least this version to make it work.
https://matplotlib.org/stable/users/pre ... pect-ratio
Re: About ops_vis
Good drift.
By installing the last release of matplotlib
the script works fine, as per next screenshot. Thanks
Nevertheless, as said previously (where I left my email address), other bugs arise and I'ld like to discuss privately with someone of forum users.
Cheers
By installing the last release of matplotlib
Code: Select all
Uninstalling matplotlib-3.2.0:
Successfully uninstalled matplotlib-3.2.0
Successfully installed matplotlib-3.4.2 pillow-8.3.0
Nevertheless, as said previously (where I left my email address), other bugs arise and I'ld like to discuss privately with someone of forum users.
Cheers
Re: About ops_vis
Dear rafal and skypass
I use matplotlib ver. 3.2.1.
I updated to ver3.3.4 and it was successful.
Thank you for your advice.
I use matplotlib ver. 3.2.1.
I updated to ver3.3.4 and it was successful.
Thank you for your advice.