More long numbers wi… on A not so easy problemĭougaj4 on More updates to ArcSpline and… Lucas Beattie on ULS Design Functions – P… Py_Numpy update and… on Calling Numpy polynomial funct… Py_Numpy update and… on More long numbers with Py… Frame Analysis with Excel - 4, 2D frame analysis.Weighted Least Squares Regression, using Excel, VBA, Alglib and Python.Using LINEST for non-linear curve fitting.Time in hours and minutes between two dates.The current Matplotlib code does not allow for rotation about the line of sight (“roll”), but this feature is under development and is expected to be included in the next release. The next example shows the same data with a different view angle and centre coordinates:įinally the same data viewed in the Strand7 FEA program, showing a very similar image to the Matplotlib/Excel plot with the same view angles: In all there are 11,473 beams and 7737 nodes. The top of the data range is shown below. The data for this image was taken from a Strand7 file, available from the Strand7 web site to licenced Strand7 users. The next example shows a much more complex plot a 3D image of the Sydney Harbour Bridge with the axes display turned off and the line width reduced to 1: In the next plot the view point is rotated 45 degrees about the Z axis (azimuth), with a vertical deflection of 30 degrees: The default plot looks along the X axis with the Y axis to the right, and the Z axis vertical. The code was checked by plotting three circles centred at the origin and with radius 10, in the XY, XZ, and YZ planes: Nummata = np.count_nonzero(Beams = i+1)Ĭolors =Īx.plot3D(x_line, y_line, z_line, col, linewidth=LineWidth) Xrange = (np.max(Nodes) - np.min(Nodes))/2 # Set viewing angle if specified, or create axes with defaultsĪx = axes3d.Axes3D(fig, azim = ViewAng, elev = ViewAng) # roll = ViewAng to be added in next release Each line is specified with the start and end coordinates, then None, so that lines that are not connected are plotted with a gap between 'numpy_array', 'numpy_array', 'float')ĭef Plot3D(Nodes, Beams, ViewAng = None, CenXYZ = None, Xrange = 0., DisplayAx = False, LineWidth = 1): The code combines all the lines of the same material into 3 arrays with X, Y and Z coordinates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |