'wireframe not getting displayed for plot_surface
I am trying to draw a 3D plot using matplotlib for my below code, but in the plot wireframe is not displayed over the surface. I thought it might be a problem with linewidth attribute, so I set it with a larger value but it instead modified surface edge border. I have attached the image.
Is there a way to get the code work as expected and display the wireframe.
import matplotlib.pyplot as plt;
from matplotlib import cm;
from mpl_toolkits.mplot3d import Axes3D;
fig = plt.figure();
axes = Axes3D(fig);#fig.add_subplot(111, projection='3d');
axes.plot_surface(stepSizesNormalized,filterOrdersNormalized, mse.T, shade = True, antialiased = False, linewidth = 5, cmap = cm.coolwarm_r);
plt.ylabel('Filter Order');
plt.xlabel('Step Size');
plt.show();
Solution 1:[1]
Try setting antialiased = True
, after changing that, I could see the wireframe.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DreiZweiEins |