Currently, my colorbar looks like

enter image description here

but it would be much better if it had 14k, instead of the $\cdot 10^4$ at the top. Is there a way to do this? My current axis code is

\documentclass[tikz, border=0pt]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{patchplots}
\pgfplotsset{compat=1.16}
\begin{document}

\begin{tikzpicture}[scale = 1.05]
    \begin{axis}[
      view={0}{90},
      scatter,
      only marks,
      colorbar,
      colormap/bluered,
      mark options={scale=1.0},
      grid=both,
      grid style={black!10},
      legend style={at={(0.4,0.95)}},
      legend cell align={left},
      x post scale=1,
      mark size=3pt,
      xmode=log,
      ymode=log,
      height=12cm,
      width=12cm,
      xmin=10,
      xmax=1500000,
      ymin=10,
      ymax=1500000,
      xtick={10, 100, 1000, 10000, 100000},
      ytick={10, 100, 1000, 10000, 100000},
    ]

\addplot3[ultra thick, fill opacity=0.5, draw opacity=0, forget plot] coordinates {(1000000.0, 6698.98, 3691.47) (966.55, 785.25, 14427.23)};

\end{axis}
\end{tikzpicture}
\end{document}



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *