# Grid of differently colored scatter plots

**URL:** <https://discourse.julialang.org/t/grid-of-differently-colored-scatter-plots/74202>\
**Category:** New to Julia\
**Tags:** plotting, plots\
**Created:** [January 7, 2022, 4:46pm UTC](https://discourse.julialang.org/t/grid-of-differently-colored-scatter-plots/74202 "2022-01-07T16:46:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [January 7, 2022, 5:28pm UTC](https://discourse.julialang.org/t/grid-of-differently-colored-scatter-plots/74202/2 "2022-01-07T17:28:00Z")

</div>

`Plots.jl`’s `plotly()` backend might be helpful to handle a large number of subplots. One example:

```julia
using Measures, Plots; plotly()

function grid_scatter(N,M)
    plotsize = (M*400,N*400)
    plts = [scatter(rand(10), xlabel="X-axis ($i)", ylabel="Y-axis ($i)", color=i,
        margin = 10mm, legend=false, plotsize=(400,400), label="plot#$i") for i in 1:N*M]
    plot(plts..., layout=(N,M), size=plotsize)
end

grid_scatter(14,13)

```

Fyi, a fraction of the scrollable html file created:

 ![Plots_plotly_grid_scatter_14x13](https://global.discourse-cdn.com/julialang/original/3X/7/8/78ada33857d05ffeca4acde814f785100256b2ff.png)

---

_[View the full topic](https://discourse.julialang.org/t/grid-of-differently-colored-scatter-plots/74202)._
