6

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

8

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

  • Perfect - I placed \pgfplotsset {/pgfplots/tick scale binop=\times} in my preamble to set it for every plot – mschrimpf Mar 12 '14 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. – Claudio Fiandrino Mar 12 '14 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.