When you display a grid of graphs in the same Plot using PlotLayout, for example through

 RandomReal[3, {4, 20}],
 PlotLayout -> {"Row", 2},
 Method -> {"Spacings" -> {10, 10}}

(Example code stolen from an answer to this question),

then Mathematica will cut off etc the bottom tick from the upper graphs and the top tick from the lower graphs like so

enter image description here Note the absence of the 0 tick from the top axis and the 3.0 tick from the bottom as well as the 20 tick from the LHS axis and the 0 tick from the RHS one. This is clearly a sensible default behaviour because usually they would overlap and so it is clearer to show neither. In my case though would prefer to appropriately space the graphs so both ticks can be displayed.

This is still the behaviour if I manually specify the ticks through the Ticks option.

Is there a way to have Mathematica display all the ticks while still displaying my grid through the PlotLayout option, i.e. not by instead using GraphicsGrid?


1 Answer 1


Will the addition of "FrameTicks->All" do what you want?

ListLinePlot[RandomReal[3, {4, 20}], PlotLayout -> {"Row", 2}, 
 Method -> {"Spacings" -> {10, 10}}, FrameTicks -> All]

enter image description here

  • $\begingroup$ Yes! Or specifically, FrameTicks -> {{All, None}, {All, None}} gives me the ticks still only along the bottom/left. Thank you! $\endgroup$ Nov 21, 2022 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.