-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Update vlines example with axes wide lines. #7878
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
Update vlines example with axes wide lines. #7878
Conversation
Current coverage is 62.16% (diff: 100%)@@ master #7878 diff @@
==========================================
Files 174 174
Lines 56078 56078
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 34862 34862
Misses 21216 21216
Partials 0 0
|
Actually you can just do
which is quite simpler. |
In addition to what @anntzer said, would you mind making the example's docstring sphinx-gallery compatible? Here's a PR that did just that for a few examples: https://github.com/matplotlib/matplotlib/pull/7331/files The basic format for that is as follows: """
====================
Title of the example
====================
A more detailed description of the example. Discuss what
each subplot is demonstrating and talk about broader
concepts.
"""
import numpy as np
import matplotlib.pyplot as plt
# yada yada yada
############################################################################
# You can also include :math:`math` inline, or as separate equations:
#
# .. math::
#
# \exp(j\pi) = -1
plt.show() |
Hi @bjodah |
I've added a small commit adding the docstring. |
Build failure is unrelated PEP8 issues #8237. |
Add transform to vline example (as discussed [here]
(#5896 (comment)) )
@tacaswell was this what you had in mind?