I’m making grids of subplots in Plots.jl by composing several plots together:
using Plots default(legend=false, tickfont=font(12)) x = -6:0.1:6 plots = map(f -> plot(x, f(x), title=string(f), tickfont=font(12)), [sin, cos, sinh, cosh]) plotgrid = plot(plots..., layout=grid(2,2), link=:both)
Now I’d like to remove unnecessary tick labels: because both axes are linked, there’s some unnecessary duplication.
let none = Int xticks!(plots, none) xticks!(plots, none) yticks!(plots, none) yticks!(plots, none) plotgrid end
But this has the side effect of 1) misaligning the subplots and 2) removing the grid lines.
Has anyone had success doing this sort of thing?