You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plot() aligns markers to pixel positions for faster and more clear rendering. Therefore markers may be shifted by fractions of a pixel. If the marker distance is not a multiple of the pixel size, you'll get these artifacts.
A possible workaround is to use scatter() with an array of sizes (with a scalar size and color scatter() would use the same code path as plot()). This comes at the cost of inhomogeneously shaped markers and slower rendering performance.
X, Y = np.meshgrid(np.linspace(0, 1, 200), np.linspace(0, 1, 100))
plt.scatter(X, Y, s=np.full_like(X, 0.6), marker='o', color="k");
Plot function in matplotlib 3.1.3 generate following strips.
The text was updated successfully, but these errors were encountered: