Code: Select all
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{xunit=2}
\begin{pspicture}(3,1)
\psaxes[Dx = 0.5]{->}(3,1)
\end{pspicture}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{xunit=2}
\begin{pspicture}(3,1)
\psaxes[Dx = 0.5]{->}(3,1)
\end{pspicture}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass{article}
\usepackage{pst-plot}
\makeatletter
\def\@LabelComma#1.#2.#3\@nil{%
\def\pst@tempA{#1}%
\ifx\pst@tempA\@empty\the\@zero\else#1\fi% the integer part
\def\pst@tempA{#2}
\ifx\pst@tempA\@empty
\@writeDecimals{}%
\else%
\ifnum#2=0\relax\else%
\@writeDecimals{#2}%
\fi%
\fi%
}
\makeatother
\begin{document}
\psset{xunit = 2}
\begin{pspicture}(3,1)
\psaxes[
comma,
Dx = 0.5
]{->}(3,1)
\end{pspicture}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis