Skip to content
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

How to pass ax.vlines() or plt.axvline() to charting figure? #13

Open
BlackArbsCEO opened this issue Aug 9, 2015 · 0 comments
Open

Comments

@BlackArbsCEO
Copy link

Hey great work overall. I'm trying to figure out how to customize the plots even more by accessing the axis for the charting figure and adding vertical lines. As an example of what doesn't work:

ax.axvline(x=threshold_buy_dates[0], ymin=ax2ymin, ymax=ax2ymax, color='limegreen', linewidth= 2, alpha=.75)

threshold_buy_dates is a pandas index object with dates when certain timeseries events have occurred.
However plotting horizontal lines does work:

ax = fig.get_ax(2)
ax.axhline(1, color='orange', linestyle='-.', linewidth= 2)

Any suggestions on what to do would be helpful. I don't mind tinkering with the code in a fork but I would benefit greatly if you could point me in the right direction as to where to look to make changes if changes are necessary. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant