How To Plot Temperature (of Stress) On Rectangle Bar By Matplotlib?
I try to plot stress of beam by using matplotlib library. I have calculated by using formulas and plot it for an example: As Figure 1, you will see that the green beam has more st
Solution 1:
Increasing the number of contour levels would make the plot appear more smooth. E.g. for 101 levels,
levels=np.linspace(d.min(), d.max(), num=101)
tri = ax1.tricontourf(triang, d, cmap=cmap, levels=levels)
fig.colorbar(tri)
Post a Comment for "How To Plot Temperature (of Stress) On Rectangle Bar By Matplotlib?"