I'm very excited to explore MachUpX due to its scriptability potential.
I installed python (not anaconda), MachUpX and FreeCAD and tested them. No issues. But when I ran an example script, I get the following error.
C:\Users\rahmat.pariyan\Desktop\Aero\MachUpX\examples\Traditional>python traditional_example.py
Traceback (most recent call last):
File "C:\Users\rahmat.pariyan\Desktop\Aero\MachUpX\examples\Traditional\traditional_example.py", line 32, in <module>
my_scene.display_wireframe(show_legend=True)
File "C:\Users\rahmat.pariyan\AppData\Local\Programs\Python\Python310\lib\site-packages\machupX\scene.py", line 1607, in display_wireframe
ax = fig.gca(projection='3d')
TypeError: FigureBase.gca() got an unexpected keyword argument 'projection'
The scene object in the script calls the method display_wireframe in scene.py which in turn calls the following
fig = plt.figure(figsize=plt.figaspect(1.0)*2.0)
ax = fig.gca(projection='3d')
which throws the error as gca in figure.py is defined in the class, FigureBase as
def gca(self):
The keyword argument, 'projection' is not included in the definition. Any help to resolve this please?