You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
I'd like to use Shape in recipes: I need to draw some polygons (basically for custom error bars), and don't want to incur Plots.jl as a dependency for users that don't actually want to plot. Unfortunately, the Shape struct is currently defined in Plots.jl.
Can we move the definition here?
The text was updated successfully, but these errors were encountered:
@recipefunctionf(σ::Partition)
legend -->false
ratio -->1.0
axis -->false
grid -->false
ret = Shape[]
m =length(σ)
for j =1:m, k =1:σ[j]
push!(ret, Shape([k-1,k-1,k,k],[1-j,-j,-j,1-j]))
end
ret
end
Any hints how to change it to seriestype := :shape?
Would be easier with a MWE, but essentially you take the first argument of Shape as x-values, the second as y-values and then set seriestype = :shape and then one series per shape as far as I can see.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to use
Shape
in recipes: I need to draw some polygons (basically for custom error bars), and don't want to incurPlots.jl
as a dependency for users that don't actually want to plot. Unfortunately, theShape
struct is currently defined inPlots.jl
.Can we move the definition here?
The text was updated successfully, but these errors were encountered: