
원래 수직 높이를 유지하면서 수평 너비를 늘려야 하는 보고서에 들어갈 계획이 있습니다. 현재 an 을 사용하고 있지만 xscale=1.7
이렇게 하면 가로 축 레이블이 플롯 영역의 오른쪽으로 이동됩니다. 나는를 사용해 보았지만 width=0.7\textwidth
이로 인해 플롯의 높이가 터무니없을 정도로 증가합니다.
\documentclass[a4paper,12pt,twoside]{report}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{figure}[h]% change in entropy
\center
\begin{tikzpicture}
\begin{axis}[xscale=1.7, xlabel=No. of Elements, ystep=1, xstep=2, xmin=0, xmax=16, ymin=0, ymax=3, ylabel= $\Delta S_{mix} (R)$]
\addplot+[color=black,smooth,mark=none]file{Data/Entropy_of_Mixing.txt};
\draw(axis cs: 2,0)--(axis cs: 2,1);
\draw(axis cs: 5,0)--(axis cs: 5,1.8);
\draw(axis cs: 13,0)--(axis cs: 13,2.8);
\node [text width= 1.5cm, text centered](a) at(axis cs: 1,0.75){Low Entropy};
\node [text width= 1.5cm, text centered](a) at(axis cs: 3.6,0.75){Medium Entropy};
\node [text width= 1.5cm, text centered](a) at(axis cs: 9,0.75){High Entropy};
\end{axis}
\end{tikzpicture}
\caption{Change in mixing entropy with number of principal elements}
\label{EntropyGraph}
\end{figure}
\end{document
답변1
xscale=1.7
로 교체하세요 x post scale=1.7
.