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

Plotting horizontal lines (support and resistence) #651

Open
arturnawrot opened this issue May 22, 2022 · 1 comment
Open

Plotting horizontal lines (support and resistence) #651

arturnawrot opened this issue May 22, 2022 · 1 comment
Labels
question Not a bug, but a FAQ entry

Comments

@arturnawrot
Copy link

As the title says: is it possible to plot horizontal lines? Seems like docs don't mention anything about it, and I have seen _plotting.py and I don't think it would be possible.

@kernc
Copy link
Owner

kernc commented May 22, 2022

You can plot a single line by way of vectors of all y s:

def init(self):
    support = 30000
    self.I(lambda: np.repeat(support, len(self.data)), name='support line')

@kernc kernc added the question Not a bug, but a FAQ entry label May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a bug, but a FAQ entry
Projects
None yet
Development

No branches or pull requests

2 participants