-
-
Notifications
You must be signed in to change notification settings - Fork 403
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 change HLine's axis range #3679
Comments
If you want the line to have a specific extent, usually you would use The |
Thank you for your quick response. Just sharing what I was expecting as a user:) |
It was certainly the intention that an HLine would only be used as an overlay on other data, but it would still be nice if we could make it behave more intuitively when used on its own, so that people could go naturally between overlaid and non-overlaid contexts. Unfortunately, a lot of how it works is inherited from Bokeh and difficult for us to change, but other HoloViews developers may be able to suggest ways we can make it work in a less surprising way. |
I see. Another good feature would be to have the axis ranges automatically reset so as to it shows all elements involved. In the first figure above, for example, the container's ylim doesn't consider HLine element's range. Is this already implemented in HoloViews? |
Again, HLine's extents are deliberately not considered when setting ranges. E.g. one might put an annotation for "absolute upper limit", which should show if that value is ever reached, but isn't relevant otherwise. Annotations aren't meant to be used as data, but in principle we could add additional elements that look like the annotations but do behave like data, add an option to the annotation to make it act like data, or something of that sort... |
This can be controlled by setting |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
What is a recommended way to set the axis range of
HLine
objects?The three methods recommended In #1717 doesn't work on HLine object. My guess is that this is because
HLine
andCurve
are semantically different:HLine
is considered a function defined on all real values whereasCurve
is defined on the range specified in the user's input data. Please correct me if that's not the reasoning behind it. For HLine objects, then, how can I change the ylim range (eg. using theredim
method)?Here are my quick test cases. It seems to work with only matplotlib as the backend, not bokeh, which seems to be aligned with bokeh's API, but the option of ylim appears on the auto-tabcomplete of HoloViews.
Another strange behavior is that the
backend
keyword inside(object).opts
doesn't override the option set byhv.extension
method. I would expect this to override the backend option for the caller object. Could you clarify if this is an intended outcome?Slightly different, but related question is, is it possible to set a default figure size (height and width) using
%%opts
oropts.defaults
method without specifying the element type?Thanks!
The text was updated successfully, but these errors were encountered: