Stream: helpdesk (published)

Topic: Effective Way of Plotting Multiple Polygons


view this post on Zulip TheCedarPrince (Jan 20 2021 at 22:56):

Hi all! I have a list of Polygons and would like to plot all the shapes on the same plot where each shape has a different color. What I have been doing is something like this:

using Plots

....

for (num, shape) in enumerate(list_of_shapes)
    plot!(shape, fillcolor = list_of_colors[num])
end

Is there a faster way of doing this? Thanks!

view this post on Zulip mbaz (Jan 20 2021 at 23:45):

I don't know if it's any faster, but there's a nice example using Makie here: https://nbviewer.jupyter.org/github/lazarusA/MakieNotebooks/blob/main/FigGlowCircle.ipynb


Last updated: Oct 02 2023 at 04:34 UTC