我正在使用这两种尺寸通过 .eps 格式的 pgfplots 外部化一些图
情况1:
width=0.55\textwidth
height=0.40\textwidth
案例2:
width=0.6\textwidth
height=0.45\textwidth
在 case1 中给出了一个漂亮的图形.eps,但是当我切换到 case2 中的大小时,它给出了一个 180 度旋转的图形.eps,就像这里一样
如果有人解决了这个问题,请提示我如何解决。
我的文本文件是这个
\documentclass[a4paper,9pt]{article}
%----------------------------------------------------------------
\usepackage{ amssymb }
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{gensymb}
\usetikzlibrary{calc}
\usetikzlibrary{positioning}
\usetikzlibrary{shadows}
\usepgflibrary{shapes.geometric}
\usetikzlibrary{external}
\tikzexternalize[prefix=FigEllBeh/]
\tikzset{external/export=true}
\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"; dvips -o "\image".eps "\image".dvi}}
%
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=0.6\textwidth,
height=0.45\textwidth,
xmin=0, xmax=1.01,
ymin=0, ymax=90,
ytick={0,30,60,90},
yticklabels={0,30,60,90},
%xtick={0,0.2,0.4,0.6,0.8,1},
%xticklabels={0,,0.4,,0.8,1},
extra x ticks={1},
extra y ticks={},
extra y tick labels={},
extra x tick labels={},
extra tick style={grid=major},
legend style={draw=none},
xlabel={$\lambda$},
ylabel={$\alpha\,\, {\rm in}\,\, [\degree]$}]
%
\addplot[black, mark=, line width=0.8pt] table[x index=0, y index=1, each nth point={4}]{../../DataFolder/EllBehData/Ws31.txt};
%
\addplot[black, mark=, line width=0.8pt, each nth point={4}] table[x index=0, y index=1]{../../DataFolder/EllBehData/Ws32.txt};
%
\node at (axis cs:0.7,75){$\rho=3$};
%
\end{axis}
\end{tikzpicture}
\end{document}