-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[DOC] Example of user-defined linestyle (TikZ linestyle) #7087
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
Conversation
color="blue", family="monospace") | ||
|
||
plt.tight_layout() | ||
# plt.savefig("linestyles.pdf") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove those two lines, thought I honestly don't have a strong feeling about it.
Thanks again for a very nice addition to the gallery. |
This could be the base for new linestyles (MEP ?):
|
I mention this just in case: there was some discussion related to line style patterns in #6547 a while ago, and the values that were chosen for the '-', ':' and '-.' line styles are a bit different. Personally, I think it may be a good idea to add some extra default line styles like this PR suggest. Quite often, I wish there was (at least) a "dashdotdotted" style available. About the example, I would have 2 remarks:
Apart from these, I find the example to be very nice, as it may provide to the users some ready-to-use values for line style patterns, without having them to try a bunch of values on their own (like I often did...) |
@afvincent Thanks for the review.
Also thanks for the link to the PR. Do you now if there's a way to have round caps in 2.0 ? |
Actually it doesn't work with |
http://matplotlib.org/api/lines_api.html#module-matplotlib.lines There is also a |
@tacaswell Thanks. I would (personally) prefer round caps by defaults but I imagine it has been already discussed. |
Is there anything else to do with this PR ? |
DOC: Example of user-defined linestyle (TikZ linestyle)
backported to v2.x as 7ed77e4 |
This is an example showing user-defined linestyle copying name and style of TikZ.