I am tring to export the plotted graphics as PNG, but its range is not coming properly:
linearFrameTicks = {
{Most /@ Charting`ScaledTicks[{Identity, Identity}][##] &,
Most /@ Charting`ScaledFrameTicks[{Identity, Identity}][##] &},
{Most /@ Charting`ScaledTicks[{Identity, Identity}][##] &,
Most /@ Charting`ScaledFrameTicks[{Identity, Identity}][##] &}};
px =
Plot[Sin[x], {x, -15, 15},
Frame -> True,
ImagePadding -> {{30, 15}, {0, 10}},
ImageSize -> 300,
FrameStyle -> Thickness[.003],
FrameTicksStyle ->
Directive[Black, FontSize -> Scaled[.015], Thickness[.003]],
FrameTicks -> linearFrameTicks,
PlotRange -> {{-10, 10}, All}];
py =
Plot[Sin[2 x], {x, -15, 15},
Frame -> True,
ImagePadding -> {{30, 15}, {20, 0}},
ImageSize -> 300,
FrameStyle -> Thickness[.003],
FrameTicksStyle ->
Directive[Black, FontSize -> Scaled[.015], Thickness[.003]],
FrameTicks -> linearFrameTicks,
PlotRange -> {{-10, 10}, All}];
pz = Column[{px, py}, Spacings -> 0]
Export["pz.png",
Import[
Export["pz.pdf", pz,
ImageSize -> 290,
ImageResolution -> 1000
]
], ImageResolution -> 1000
];
SystemOpen["pz.png"]

linearFrameTicks? – cvgmt Dec 01 '20 at 08:24Export["pz.png", Style[pz, {"FontProperties" -> {"ScreenResolution" -> 1000}}], ImageResolution -> 1000]. For the other platforms unfortunately, it would need 12.1. – ihojnicki Dec 03 '20 at 14:08