Plotting of functions with matplotlib is always piecewise constant
I think this is a regression, pretty sure it was piecewise linear before.
Comments (11)
-
-
One can just pass kwarg
plot(..., backend='matplotlib', mode='color', shading='gouraud')
.Do you think, @chris_richardson, that the issue is filed upstream and getting some attention?
-
No, I think it is low priority for them. I personally prefer "gouraud" as the default. Either way it is misleading, so we might as well have something which looks nice.
-
Ok, feel free to change it. But make sure, please, that
shading='flat'
kwarg works. -
If Matplotlib doesn't support it, how about using X3DOM instead?
-
reporter Why not, seems like matplotlib isn't that great for anything 2d or 3d.
-
I feel they are complementary, though. matplotlib is useful in other ways - e.g. can save output in various formats. Agree for 3D though.
-
Despite P1 colouring issue, I've found matplotlib useful for producing high quality PDFs in a programmatic way.
-
- removed milestone
Removing milestone: 1.7 (automated comment)
-
@chris_richardson didn't you changed default to some shading?
-
- changed status to resolved
Now uses filled contours, which look better
- Log in to comment
Neither. Previously, it used "gouraud" shading (which @blechta removed). The "gouraud" shading is smoother than piecewise linear. I messaged a matplotlib developer, but it is upstream from them - graphics backend support...