How can I make the content inside these two images are aligned and the region outside of the plots are also same?
I don't want to combine two images together. I want to make them having the same size and symmetric so they look good when I insert they somewhere (not necessary on the same table).
plot1 = Plot[x, {x, 1, 3.0001}, GridLines -> {Range[3], Range[3]},
Frame -> {{True, True}, {True, False}},
FrameTicks -> {Range[1, 3, 1], Range[0, 3, 1]},
Frame -> {{True, False}, {True, False}},
FrameLabel -> {x, y},
ImageSize -> 300, PlotRangePadding -> None]
plot2 =Plot[-x, {x, -2.0001, 0},
GridLines -> {Range[-2, 0, 1], Range[0, 2, 1]},
Frame -> {{False, True}, {True, False}},
FrameTicks -> {Range[-2, 0, 1], Range[0, 2, 1]},
Frame -> {{False, True}, {True, False}},
FrameLabel -> {{False, y}, {x, False}},
ImageSize -> 300, PlotRangePadding -> None]
Assume that I export them as PNG or PDF and insert into word or LaTeX.
Export["plot1.png", plot1];
Export["plot2.png", plot2];
As you can see here the frame axes are misaligned. I want to make them aligned. In this case the misalignment doesn't look too bad but in some cases it become worse.
ImagePadding -> 30
works here. $\endgroup$ImageSize
,ImagePadding
and the axis size? $\endgroup$