[pstricks] Problem with ylabelFactor

Alan Ristow ristow at ece.gatech.edu
Sun Feb 20 01:50:03 CET 2005


Hi,

I'm having a problem with the ylabelFactor argument to psgraph. As I 
understand (and recall from previous versions), it is supposed to append 
an additional part to the values on y-axis. In other words, if 
ylabelFactor={\%}, then the y-axis labels should be followed by a "%" 
sign. Yes?

I cannot seem to get this to work. It produces a chart, but ylabelFactor 
has no effect -- I get the same graph whether I use it or not.

Minimal example below. Incidentally, between \begin{document} and 
\end{document}, this code is lifted straight from the pstricks-add docs, 
and the axis label is also missing there. The \listfiles result below 
shows version 2.28 of pstricks-add, but I have also tried with 2.32 and 
2.35 with the same results.

Alan


\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{filecontents}

\begin{filecontents*}{demo1.dat}
   0 100000000
   5 150000000
   10  250000000
   15  275000000
   20  315000000
   25  575000000
\end{filecontents*}

\listfiles

\begin{document}
  \readdata{\data}{demo1.dat}
  \pstScalePoints(1,0.000001){}{} % (x,y){ additional x operator }{y op}
  \psset{llx=-1cm,lly=-1cm}
  \psgraph[ylabelFactor={\cdot 10^6},Dx=5,Dy=100](0,0)(25,750){8cm}{5cm}
  \listplot[linecolor=red,linewidth=2pt,showpoints=true]{\data}
  \endpsgraph
  \pstScalePoints(1,1){}{} % reset
\end{document}



  *File List*
  article.cls    2004/02/16 v1.4f Standard LaTeX document class
   size10.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2004/06/22 v1.04 `PSTricks' (tvz)
   xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
    color.cfg    2003/03/08 v1.0 MiKTeX 'color' configuration
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty    2004/07/18 package wrapper for pstricks-add.tex (hv)
pstricks-add.tex    2004/11/24 v2.28 `PSTricks-add' (hv)
pst-xkey.tex    2005/01/16 v1.3 PSTricks specialization of xkeyval (HA)
  xkeyval.sty    2005/02/08 v2.1 package option processing (HA)
  xkeyval.tex    2005/02/08 v2.1 key=value parser (HA)
filecontents.sty    2004/08/16 v1.1 Create an external file from within 
a LaTeX
  document
  ***********





More information about the PSTricks mailing list