Closed IanButterworth closed 1 month ago
we do this by grouping them under axis
and figure
keywords so they cannot clash with the plot keywords.
scatter(x, y, markersize=1, axis = (; title="myplot", xlabel="foo", ylabel="bar"))
Also, in 0.21 you will get much better errors for this kind of stuff:
We could also add a hint there if we find keywords probably meant for Axis or Figure
Oh wow. Yeah that's great 👍
Closing as, hmm, already implemented in a different way?
I think it would be good to accommodate this kind of typical plotting pattern for setting things like titles and labels
Either/and:
Axis
can take to the active axisAlso, the function
xlabel("foo")
not existing adds further pain, because the user has seen thatscatter(...)
works without specifying the active axis...And the hint to the method here
xlabel!(::Any, ::AbstractString)
isn't informative because ofAny
.Also, to add a little more pain