Setting xmin
and xmax
for hlines
in data coordinates
#4443
Labels
enhancement
Feature requests and enhancements
Makie
Backend independent issues (Makie core)
plot
Related to plot object
Feature description
For clarity, I refer only to
hlines
in this feature request. Assume that the following applies toymin
andymax
forvlines
too.I would like to be able to set minimum and maximum x-values for hlines in data coordinates. As far as I can tell, it is currently only possible to set these in scene coordinates.
In this code, I attempt to draw horizontal lines that extend right from a curve by using
xmin
in scene coordinates.As you can see, the naive conversion to scene coordinates is buggy because the scene's limits do not correspond exactly to the data's limits. In more complex plots, converting coordinates manually can be even harder.
Alternatively, being able to use
lines
without affecting the limits would allow a similar result.The text was updated successfully, but these errors were encountered: