I am trying to rotate a figure on the page by 90 degrees. I am using:
\usepackage{rotating}
and then my figure code looks like:
\begin{sidewaysfigure*}[ht]
\centering
\begin{tabular}{@{}cc@{}}
\includegraphics[width=120mm]{c1713_a_vm.png} &
\includegraphics[width=120mm]{c1713_b_vm.png}
\end{tabular}
\caption{figure caption}
\label{fig_label}
\end{sidewaysfigure*}
This produces a figure that seems to be hugging the left hand side, and missing half of the caption. I want to center it horizontally (as you view it), but I'm not sure how to do this.
I have found a similar problem here, and apparently the problem here is the "mn2e" document class (for an astrophysical journal). I'm not using that class, but I am using a class for a different astrophysics journal ("emulateapj"), which seems like a bit of a coincidence! The remedy suggested was to put:
\RequirePackage{rotating}
before the \documentclass instruction. But when I try this, it doesn't solve my problem and I get the following error:
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
MWE:
\documentclass{emulateapj}
\newcommand{\vdag}{(v)^\dagger}
\newcommand\aastex{AAS\TeX}
\newcommand\latex{La\TeX}
\usepackage{amsmath,mathtools,etoolbox}
\usepackage{longtable}
\usepackage{float}
\usepackage{tabularx,colortbl}
\usepackage{adjustbox}\usepackage{mathtools}
\usepackage{array}
\usepackage{makecell}
\usepackage{stackengine}
\setstackEOL{\cr}
\usepackage[table]{xcolor}
\usepackage{adjustbox}
\usepackage{rotating}
\begin{document}
\begin{sidewaysfigure*}[ht]
\centering
\begin{tabular}{@{}cc@{}}
\includegraphics[width=120mm]{1713_a_vm.png} &
\includegraphics[width=120mm]{1713_b_vm.png}
\end{tabular}
\caption{Figure caption figure caption figure caption.}
\label{1713_vm}
\end{sidewaysfigure*}
\end{document}

