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

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Aug 26 11:21:24 CEST 2017


Patrice MEGRET schrieb:

> 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.

Patrice,
use it this way:

\documentclass{article}
\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*}[labels=none,ticks=none]{->}(0,0)(9,2.3){8cm}{7cm}
	\psaxes[yAxis,ticks=y,xAxis=false,yLabels={0,1,6}](0,2)
\end{psgraph*}

\end{document}

Herbert



More information about the PSTricks mailing list