This MWE:
\documentclass{article}
% translate with >> pdflatex -shell-escape <file>
% This file is an extract of the PGFPLOTS manual, copyright by Christian Feuersaenger.
%
% Feel free to use it as long as you cite the pgfplots manual properly.
%
% See
% http://pgfplots.sourceforge.net/pgfplots.pdf
% for the complete manual.
%
% Any required input files (for <plot table> or <plot file> or the table package) can be downloaded
% at
% http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/doc/latex/
% and
% http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/doc/latex/plotdata/
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\pagestyle{empty}
\usepgfplotslibrary{units}
\begin{document}
\begin{tikzpicture}
\begin{axis}[change x base,
x SI prefix=kilo,x unit=m,
y SI prefix=milli,y unit=N,
xlabel=Distance,ylabel=Force]
\addplot coordinates {
(1000,1)
(2000,1.1)
(3000,1.2)
(4000,1.3)
};
\end{axis}
\end{tikzpicture}
\end{document}
results in units set in square brackets. This conflicts to the SI-brochure 8 and the German standard DIN 1313.
How can I switch that off or change it to "/unit" or "+in+unit"? I am not able to report that on sourceforge which is a pity as this wrong unit formatting is getting more and more popular.
If Mr. Feuersänger is reading here on TEX.SX, I am having this feature requests regarding the units:
- never use brackets at all, but slash or "in" (Edit: for slash notation round brackets for divided units could be useful as mentioned in the comments. E.g.
$a$/(m/s^2)
) - possibility to set unit after the symbol (axis label) or between the last two tick labels (or in place of the second last ticks label if to less space)
- allow
siunitx
-syntax - automatically set angle units (
°
,'
and''
) and time units (^h
,^min
and^s
) (not to be confused with time period units (a
,h
,min
ands
)) directly next to each tick label - set powers of ten or units like
%
,‰
orppm
between the last two tick labels
unit markings=slash space
unit markings=slash
is not working. I will search for otherunit markings
-commands in the manual. Still, a wrong default should be changed.