-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
support scalars for hline! and vline! #2129
Comments
Maybe we should just generally have
I remember this being an annoyance for quite some time. Perhaps somehow it was temporarily working recently, but I doubt it. |
It's used in the Lorenz Attractor example on the start page of Plots Docs, http://docs.juliaplots.org/latest/#simple-is-beautiful, to initialize an empty series and grow it in an animation. I don't know how much it's used by users, I don't use it. But I think this change requires some discussion as it would be breaking.
I also cannot imagine that this worked recently. but I am not 100% sure. |
Does this really break anything? Can't we just set a generic scalar fallback for
so the previous behavior is retained. In http://docs.juliaplots.org/latest/#simple-is-beautiful they use so no breakage. For the Isn't this just a one liner to make a rational fallback on top of existing behaviour? I dont see why this is relevant
This seems to be about new plots. |
It would be nice to have
hline!(0.73)
working instead ofhline!([0.73])
. The same goes forvline!
.Currently for floats it errors with
No user recipe defined for Float64
.For Ints on the other hand I get a BoundsError
attempt to access 0-element Array{Float64,1} at index [1]
.I am 70 percent sure this worked about four weeks ago but if not then consider this a feature request :)
The text was updated successfully, but these errors were encountered: