New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dotted grid lines in matplotlib v2.0.0 appear dashed #7991
Comments
I would agree that they don't quite look dotted to me. From #6515, import numpy as np
import matplotlib.pyplot as plt
x = np.array([1, 1, 1, 2, 2, 2, 3, 3, 3])
y = np.array([1, 2, 3, 1, 2, 3, 1, 2, 3])
a = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
grid = a.reshape(3, 3)
plt.imshow(grid, extent=(x.min(), x.max(), y.min(), y.max()),interpolation='bicubic')
plt.grid(linestyle='dotted')
plt.show() |
You can configure this however you wish: http://matplotlib.org/users/dflt_style_changes.html#plot |
Maybe, but people don't want to waste time fixing stuff before they can use it. Matplotlib should be provided ready for use and not misconfigured. Most people mean a dotted line if they say so. But currently they don't get it. People don't know the settings for a dotted line nor do they have time to figure it out. |
Flagged as critical as we need to make a decision on this one way or the other. |
Yeah, I'll agree that I don't think we should really be calling those lines dotted. |
I think both the 0.5 and 1 cases look good. It would also be worth checking over a range of line widths. |
talking to @dopplershift we are going to adjust the clipping to 1. |
👍
…On 6 Feb 2017 9:00 p.m., "Thomas A Caswell" ***@***.***> wrote:
talking to @dopplershift <https://github.com/dopplershift> we are going
to adjust the clipping to 1.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7991 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF6RfJRqRxy8OrnUaqQF7YK4zOOzXCVDks5rZ4nogaJpZM4LxQi0>
.
|
If you do not want to use the 2.0 styles, there is a classic style sheet available (the first thing documented in http://matplotlib.org/users/dflt_style_changes.html#changes-to-the-default-style ). See http://matplotlib.org/users/dflt_style_changes.html#plot for how to selectively revert the changes to the classic patterns and disable the scaling with line width. You can also pass a dash pattern directly to grid to get what ever pattern you want. There is no set of defaults which will make all users of Matplotlib happy at all times, there are simply too many different use cases (and too many users). Sorry that you have a case where they do not work well, but there is more than enough flexibility in the library to get your desired outcome. As a reminder, a vast majority of the work done on Matplotlib is done by volunteers on their own time. |
Thank you for pointing things out. |
Thanks for pointing this out. |
You can use, ax.grid(color='r', linestyle='dotted', linewidth=2) |
As discussed in issue #6515 dotted grid lines do not appear dotted but dashed.
This has not changed in version 2.0.0.
Could you please restore the dotted appearance as seen in earlier versions?
The current appearance is not satisfying.
The text was updated successfully, but these errors were encountered: