[pstricks] psgraph problem

Patrice Mégret Patrice.Megret at fpms.ac.be
Sat Jun 7 13:04:31 CEST 2008


Dear Herbert,

Thanks for your work.

It works perfectly for x-labels but not for y-labels, they still disappear when yticksize=yyy xxx is written with yyy different from 0.



\documentclass[11pt,a4paper]{article}
\usepackage{pstricks-add}
\listfiles

\begin{document}

\begin{psgraph}[xticksize=0 2,yticksize=0 6,subticks=10, subticksize=1](0,0)(-2,-2)(6,2){12cm}{5cm}
\end{psgraph}
\vspace{2cm}

\begin{psgraph}[xticksize=-1 2,yticksize=0 6,subticks=10, subticksize=1](0,0)(-2,-2)(6,2){12cm}{5cm}
\end{psgraph}
\vspace{2cm}

\begin{psgraph}[xticksize=-2 2,yticksize=-1 6,subticks=10, subticksize=1](0,0)(-2,-2)(6,2){12cm}{5cm}
\end{psgraph}
\end{document}
*File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size11.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks-add.sty    2007/09/03 v. 0.12 package wrapper for pstricks-add.tex (hv
)
pstricks.sty    2008/01/22 v0.36 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/01/01 v1.20 `PSTricks' (tvz)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex    2008/06/06 v3.05 `PSTricks-add' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2006/11/18 v2.5f package option processing (HA)
 xkeyval.tex    2006/11/18 v2.5f key=value parser (HA)
 ***********



Patrice




-----Message d'origine-----
De : pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] De la part de Herbert Voss
Envoyé : samedi 7 juin 2008 12:32
À : Graphics with PSTricks
Objet : Re: [pstricks] psgraph problem

Patrice Mégret schrieb:

> In the first case, everything is ok whereas in the second case the x- labels are correctly pushed at the bottom of the graph but the y-labels disappear instead of being pushed to the left of the graph.

the version pstricks-add.tex from http://perce.de/LaTeX/pstricks-add/
should fix the problem, also the one from Denis. You can now set
something like xAxisLabelPos={c,-2} to center a label horizontally.
The default position for the labels set by uput is (maxX,0) and (0,maxY)

When using an unit then the distance is always measured from the origin
of the coordinate system, which must not be part of the defined 
pspicture environment.

Herbert


> \documentclass[11pt,a4paper]{article}
> 
> \usepackage{pstricks-add}
> 
> \begin{document}
> 
> \begin{psgraph}[xticksize=0 2,yticksize=0 6,subticks=10, subticksize=1](0,0)(6,2){12cm}{5cm}
> \end{psgraph}
> 
> \vspace{2cm}
> \begin{psgraph}[xticksize=-2 2,yticksize=-2 6,subticks=10, subticksize=1](0,0)(-2,-2)(6,2){12cm}{5cm}
> \end{psgraph}
> 
> \end{document}
> 

_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testpsgraph.ps
Type: application/postscript
Size: 111681 bytes
Desc: testpsgraph.ps
Url : http://tug.org/pipermail/pstricks/attachments/20080607/5a502f73/attachment.ps 


More information about the PSTricks mailing list