-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Soft-deprecate dashes in favor of linestyle #17483
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
Comments
seaborn uses One point I would make is that the
If you're going to be modifying the linestyle code to take the dash patterns directly, it might be good to fix how that works. |
Sorry, I mean that any kind of quantitative dash pattern (passed to f, ax = plt.subplots()
line, = ax.plot([0, 1], linestyle=(0, (4, 1)))
line.get_linestyle()
|
dashes are just a more limited form of linestyles. Actually, they are no more than:
I propose to soft-deprecate dashes in favor of linestyle. Dashes are redundant and thus only increase the API complexity without any benefit. OTOH I don't think we should deprecate dashes because there might be quite a bit of code out there using it.
Specific actions for this task:
linestyle
should directly accept a dash pattern. - It currently only accepts(offset, dash_pattern)
.set_linestyle
.set_dashes
, recommend to useset_linestyle
instead.The text was updated successfully, but these errors were encountered: