# Subplot of contours with different legends (Plots.jl; plotly backend)

**URL:** <https://discourse.julialang.org/t/subplot-of-contours-with-different-legends-plots-jl-plotly-backend/73076>\
**Category:** General Usage\
**Tags:** question, plots, plotlyjs\
**Created:** [December 14, 2021, 2:35pm UTC](https://discourse.julialang.org/t/subplot-of-contours-with-different-legends-plots-jl-plotly-backend/73076 "2021-12-14T14:35:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fathya.Salih](https://avatars.discourse-cdn.com/v4/letter/f/47e85d/32.png) [@Fathya.Salih](https://discourse.julialang.org/u/Fathya.Salih)\
**Post date:** [December 14, 2021, 2:35pm UTC](https://discourse.julialang.org/t/subplot-of-contours-with-different-legends-plots-jl-plotly-backend/73076/1 "2021-12-14T14:35:53Z")

</div>

Hello,

I am using Plots.jl with a plotly() backend and I am trying to plot more than one contour plot in the same figure with their respective color bars, since are on different orders of magnitude.

When I try the code below, I get overlapping legends in the colorbar. Any ideas on how I can fix this?

![newplot - 2021-12-14T173036.086](https://global.discourse-cdn.com/julialang/original/3X/e/6/e609fb13c207e468798f4e6e1733077c65b32cc1.png)

```julia
using Plots
plotly()

p3 = 
	contourf(
		range(0,1,length=5), range(-1, 3, length = 6), rand(6,5),
		contour_labels = true,
	)

p4 = 
	contourf(
		range(0,1,length=5), range(-1, 3, length = 6), (rand(6,5)*100 .+ 200),
		contour_labels = true,
	)

plot(
	p3, p4,
	layout = (1, 2),
	size = (600, 250),
	title = ["A" "B"],
	ylabel = "y_axis",
	xlabel = "x_axis",
	leftmargin = 5*Plots.mm,
	rightmargin = 5*Plots.mm,
	tickfontsize = 11,
    guidefont = 12,
	titlefont = 14,
	fontfamily = "ComputerModern"
	)

```

(Julia version 1.7.0 on Pluto v0.17.3)
