# Two subfigures with PlotlyJS.jl

**URL:** <https://discourse.julialang.org/t/two-subfigures-with-plotlyjs-jl/99666>\
**Category:** Specific Domains\
**Tags:** question, plotting, visualization\
**Created:** [May 31, 2023, 11:21am UTC](https://discourse.julialang.org/t/two-subfigures-with-plotlyjs-jl/99666 "2023-05-31T11:21:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![empet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/empet/32/221303_2.png) [@empet](https://discourse.julialang.org/u/empet)\
**Post date:** [May 31, 2023, 4:45pm UTC](https://discourse.julialang.org/t/two-subfigures-with-plotlyjs-jl/99666/2 "2023-05-31T16:45:35Z")

</div>

See this answer [https://discourse.julialang.org/t/plotlyjs-subplots-and-individual-layouts/87740/2](https://discourse.julialang.org/t/plotlyjs-subplots-and-individual-layouts/87740/2) to a question related to subplots.  
More precisely, in your case define:

```julia
plt=make_subplots(rows=2, cols=1, 
                  specs=reshape([Spec(kind="geo")
                                 Spec(kind="geo")], 2,1))

```

and add traces to each subplot, as in the example from the above link.  
Also with the latest PlotplyJS version, the colorscale in marker definition  
should be `colorscale=colors.Greens`.

---

_[View the full topic](https://discourse.julialang.org/t/two-subfigures-with-plotlyjs-jl/99666)._
