Sometimes I like to display two plots right next to each other, so I can see all the important information at once.
For example, I have a plot with 5 lines, and I want to have a plot of only 2 of those lines right next to it.
Solutions I found with GraphicsRow etc often cut off parts of my plots, make the plots smaller, and when I try to readjust them, it just becomes worse. Like this for example:
GraphicsRow[{ListPlot[{table1,table2}, Joined -> True,
ImageSize -> 200, ImagePadding -> {{Automatic, 10}, {Automatic, 10}}],
ListPlot[{table1}, PlotLegends -> Automatic, Joined -> True, ImageSize -> 200,
ImagePadding -> {{Automatic, 10}, {Automatic, 10}}]},
Spacings -> Scaled[0.2]]
I keep thinking there has to be an easier way that does not require so much finetuning. The outcome does not have to be very polished, as long as the plots are easily visible (like the default plot size that ListPlot produces).
Bonus points for keeping the colors the same for the same lines across the two plots.
//Style[#,ImageSizeMulpliers-> {1,1}]&
after your code. See here $\endgroup$table1
andtable2
is. So you asking someone to make up these themselves. Why not provide these as well? If it not too much work for you. $\endgroup$