Open bc0n opened 2 years ago
Xref https://github.com/JuliaPlots/Plots.jl/issues/4157, maybe.
can types be added to the documentation display
I think that's a feature to ask for in Documenter
(@autodocs
).
rec.src = "api.html"
rec.fragment = "#Plots.xticks!-Tuple{Union{Symbol, Tuple{AbstractVector{T}, AbstractVector{S}}, AbstractVector{T}} where {T<:Real, S<:AbstractString}}"
rec.category = "method"
rec.title = "Plots.xticks!"
rec.page_title = "API"
Details
Under Julia 1.7.2, Plots v1.28.1, PyPlot v2.10.0, assigning a 1D {Matrix} to x/yticks prevents the plot from displaying. vscode>Jupyter fails silently while repl gives an error. This can be worked around by
xt = vec([1 3 7 10])
. GR() is happy with a 1D matrix for ticks.No type error or warnings are given in vsCode.Jupyter.
Executing in the julia repl gives:
It's good to have any error, but a type error would seem more correct. Any thoughts on why Jupyter doesn't pass on the error?
More generally, can types be added to the documentation display? There's more information in the doc url than in the page https://docs.juliaplots.org/latest/api/#Plots.xticks!-Tuple{Union{Symbol,%20Tuple{AbstractVector{T},%20AbstractVector{S}},%20AbstractVector{T}}%20where%20{T%3C:Real,%20S%3C:AbstractString}}
#2337 may be relevant & blocking.
Many thanks, Ben
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: 1.28.1 Backend version (
]st -m <backend(s)>
): PyPlot v2.10.0 Output ofversioninfo()
: