Is there a way to get a dotted line with prescribed density, for instance 10 dots per centimeter, instead of the default?
With Jesse's comment :
\documentclass[10pt,a4paper,french]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{tikz}
\usetikzlibrary{calc,intersections,through,backgrounds}
\tikzstyle{cm dotted}=[dash pattern=on \pgflinewidth off .85mm ]
\begin{document}
\begin{tikzpicture}
\draw[cm dotted,line width=.15mm,step=.5] (0,0) grid (5,4) ;
\end{tikzpicture}
\end{document}
Still an unwanted shift of half a linewidth. The horizontal and vertical crossing points are not on at the right place. I understand why, but I don't know how fix it.


