Installing Python on a new computer, I found I had to downgrade Matplotlib to release 3.5.2 to get my 3D plotting functions to work. Further investigation found that the problem was the Axes3D function.
Changing:
ax = axes3d.Axes3D(fig)
to:
ax = fig.add_subplot(1,1,1, projection='3d')
the 3D plotting functions worked without further changes to the code. Some additional functionality was also added:
- The new “roll” angle and focal length attributes were addded.
- The calculation of the viewpoint coordinates offset and the zoom factor were modified.
- Scroll bars were added to the spreadsheet to control the zoom factor and viewpoint location.
The new code for the Plot3D function and the new Plot Frame spreadsheet can be downloaded from:
New spreadsheet:
Wow, very nice drawing sheet.
Where is located the coordinates to show this draw? Matplotlib creates the file anywhere?
LikeLike
I have added a link to my previous post on 3D plotting, which has a link to the source of the image data, as well as several other examples. The original data is only available to licenced users of the Strand7 FEA package, but the coordinates are included in the download spreadsheet. The functions require pyxll to run from Excel, but all the python code is included in the download file.
LikeLike