8

Similar to this question, I want the scientific \times symbol instead of the * symbol for pgfplots' multipliers. However, I need it for the whole axis-multiplier and not for every tick like in the other question.

\documentclass{standalone}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
    \begin{axis} [xmin=0, xmax=10000, ymin=0, ymax=10000]
        \addplot plot coordinates {(5000, 5000)};
    \end{axis}
\end{tikzpicture}
\end{document}

Illustration

1 Answer 1

10

Pgfplots has a tick scale binop option for this:

enter image description here

It is located under the /pgfplots path, hence:

\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}[/pgfplots/tick scale binop=\times]
    \begin{axis} [xmin=0, xmax=10000, ymin=0, ymax=10000]
        \addplot plot coordinates {(5000, 5000)};
    \end{axis}
\end{tikzpicture}
\end{document}

You can also use:

\begin{tikzpicture}
   \begin{axis} [tick scale binop=\times,xmin=0, xmax=10000, ymin=0, ymax=10000]

or alternatively:

\pgfplotsset{tick scale binop=\times}

in the preamble. The result:

enter image description here

2
  • Perfect - I placed \pgfplotsset {/pgfplots/tick scale binop=\times} in my preamble to set it for every plot
    – mschrimpf
    Mar 12, 2014 at 7:41
  • 1
    @Mash: you're welcome. Your solution is excellent; one minor point though: \pgfplotsset already sets the main path /pgfplots, hence \pgfplotsset{tick scale binop=\times} will also work. Mar 12, 2014 at 7:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .