Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ @Marteen Can you give a more concrete example of where the styles are different? If I add FrameStyle -> Directive[Black, 15] to the definition of plot, and add FrameLabel -> {"x label", "y label"} to the options of PlotGrid (as you tried), I get this result (notice how the styles are the same): Screenshot $\endgroup$ Commented Dec 14, 2022 at 20:20
  • 1
    $\begingroup$ @Marteen FrameStyle (as the name implies) changes the style of the frame. The Black colors font & lines black, the 15 is shorthand for FontSize->15. Directive is used to combine the two settings. What makes FrameStyle a bit "special" is that PlotGrid will copy the FrameStyle of the first plot for its own frame (which then controls the style of the labels specified for PlotGrid), see also the documentation of PlotGrid. You could of course also just specify FrameStyle->Directive[Black,15] in PlotGrid as well, but the other way makes sure everything looks the same. $\endgroup$ Commented Dec 14, 2022 at 21:39
  • 1
    $\begingroup$ @Marteen How are you adding the legend? If I use PlotLegends -> Placed[{"Experiment", None, "Simulation"}, {Left, Top}], the legend doesn't get moved unexpectedly. As for removing the second legend: You can use {{plot}, {First@plot}} as first argument to PlotGrid, this will explicitly strip off the legend from the second (lower) copy of plot, leaving you with this: Screenshot $\endgroup$ Commented Dec 15, 2022 at 9:48