I'm including two images with pgfplots plot graphics. They have the same height (693px) but different width (883px and 1023px). However, I can't manage to get them drawn with the same height.
How can I solve this? I've tried adding height here and there or reading through the pgfplots chapters, but I'm sure I'm missing something obvious.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[enlargelimits=false,axis equal image]
\addplot graphics [
xmin=0,xmax=38.225,ymin=0,ymax=30,
includegraphics={draft}
] {883x693.png};
\end{axis}
\begin{axis}[enlargelimits=false,axis equal image,xshift=8cm]
\addplot graphics [
xmin=0,xmax=44.28,ymin=0,ymax=30,
includegraphics={draft}
] {1023x693.png};
\end{axis}
\end{tikzpicture}
\end{document}
(I'd prefer the drawn image to have the same number of pixels as the PNG files, but I believe that's outside of pgfplots' scope?)


px, I think these widths/heights are interpreted as some other unit? – Anna Jan 27 '24 at 13:46