Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

In Plots.jl, can I have a single x axis for a grid of plots?

$
0
0

I have an array of plots (49 of them so it’s a fairly large figure)

plts = Plots.Plot[]
for i = 1:49 
   p = plot(...)
   push!(plts, p)
end
plot(plts..., layout = 49, size=(2000, 2000), link=:x, margin=-1mm)

I have two questions here

  1. Each plot gets its own x axis and y axis. Since the x-axis is the same for all plots, I’d like a single axis at the bottom of each column. I thought the link = :x would work, but I don’t know if I am using it correctly.

  2. The y-tick-labels have a large gap between the y axis. (note, I am not talking about the axis label… but the actualy axis-tick values). Is there a way to reduce this margin?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles