[pstricks] yLabels={...} problem is psgraph

Patrice MEGRET Patrice.MEGRET at umons.ac.be
Sat Aug 26 10:38:35 CEST 2017


Dear Herbert,

I have a small problem with yLabels:={...} when the y coordinate in the psgraph environment is not an integer, the yLabels are not correctly displayed.
Below is an example \begin{psgraph}...(9,2){8cm}{7cm} is correct but  \begin{psgraph}...(9,2.3){8cm}{7cm} is not correct. Same problem with non-integer x axis and xLabels.



\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pstricks-add}

\begin{document}

\psset{llx=-1.5cm,lly=-0.7cm,ury=0.7cm,mathLabel=false,xAxisLabel={},yAxisLabel={Énergie },yAxisLabelPos={-1.2cm,c},xyDecimals=1,labelFontSize=\scriptsize}
\begin{psgraph*}[Dy=1,labels=none,ticks=y,yLabels={0,1,6}]{->}(0,0)(9,2.3){8cm}{7cm}
\end{psgraph*}


\psset{llx=-1.5cm,lly=-0.7cm,ury=0.7cm,mathLabel=false,xAxisLabel={},yAxisLabel={Énergie },yAxisLabelPos={-1.2cm,c},xyDecimals=1,labelFontSize=\scriptsize}
\begin{psgraph*}[Dy=1,labels=none,ticks=y,yLabels={0,1,6}]{->}(0,0)(9,2){8cm}{7cm}
\end{psgraph*}

\end{document}


Best regards,
Patrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20170826/b7246d55/attachment.html>


More information about the PSTricks mailing list