축 지수의 가수 sep 변경

축 지수의 가수 sep 변경

플롯을 생성하는 다음 라텍스 코드가 있습니다. 과학 표기법 mantissa sep를 \timesnot 로 변경하고 싶습니다 cdot. 이는 y축(x10-4)에 대한 것입니다. 나는 다른 모든 숫자도 과학적 표기법으로 사용하는 것을 원하지 않습니다. 잘못된 과학적 표기법 플롯 나는 시도했지만 \pgfkeys{/pgf/number format/sci generic/mantissa sep=\times} 효과가 없었습니다. 무엇을 바꿔야 합니까?

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\begin{document}
\definecolor{mycolor1}{rgb}{0.00000,0.44700,0.74100}%
\definecolor{mycolor2}{rgb}{0.85000,0.32500,0.09800}%
\begin{tikzpicture}
\pgfkeys{/pgf/number format/sci generic/mantissa sep=\times}

\begin{axis}[%
width=(\hsize/2),
height=(\hsize/2),
scale only axis,
xmin=0,
xmax=0.5,
xlabel near ticks,
xlabel={Density $\lambda$},
ymin=0,
ymax=0.00035,
ylabel near ticks,
ylabel={Rate, ($s^{-1}$)},
axis x line*=bottom,
axis y line*=left,
xmajorgrids,
ymajorgrids,
legend style={legend cell align=left, align=left}
]
\addplot [color=mycolor1, mark=o, mark options={solid, mycolor1}]
  table[row sep=crcr]{%
1e-05   0.000349984346613178\\
0.0250095   0.000294763280950208\\
0.100008    0.000223262905327838\\
0.1750065   0.000189761632377871\\
0.250005    0.000168814588345592\\
0.3250035   0.000153988764794569\\
0.400002    0.000142726344312675\\
0.4750005   0.000133766561301556\\
0.5 0.000131160050335831\\
};\label{rate_plot}
\addlegendentry{Rate}

\end{axis}

\end{tikzpicture}%

\end{document}

비슷하다pgfplots: 플롯 축의 과학 표기법에 \times 기호 사용

답변1

.10를 변경하는 키는 PGFPlots 문서의 4.15.3 Tick Scaling - Ticks의 공통 요소에 x10나와 있습니다 .tick scale binop=\times

수정된 코드:

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\begin{document}
\definecolor{mycolor1}{rgb}{0.00000,0.44700,0.74100}%
\definecolor{mycolor2}{rgb}{0.85000,0.32500,0.09800}%
\begin{tikzpicture}

\begin{axis}[%
width=(\hsize/2),
height=(\hsize/2),
scale only axis,
xmin=0,
xmax=0.5,
xlabel near ticks,
xlabel={Density $\lambda$},
ymin=0,
ymax=0.00035,
ylabel near ticks,
ylabel={Rate, ($s^{-1}$)},
axis x line*=bottom,
axis y line*=left,
xmajorgrids,
ymajorgrids,
legend style={legend cell align=left, align=left},
tick scale binop=\times
]
\addplot [color=mycolor1, mark=o, mark options={solid, mycolor1}]
  table[row sep=crcr]{%
1e-05   0.000349984346613178\\
0.0250095   0.000294763280950208\\
0.100008    0.000223262905327838\\
0.1750065   0.000189761632377871\\
0.250005    0.000168814588345592\\
0.3250035   0.000153988764794569\\
0.400002    0.000142726344312675\\
0.4750005   0.000133766561301556\\
0.5 0.000131160050335831\\
};\label{rate_plot}
\addlegendentry{Rate}

\end{axis}

\end{tikzpicture}%

\end{document}

관련 정보