[pstricks] Bug: Shifting of axes, labeling and graph is psgraph environment

dpstory at uakron.edu dpstory at uakron.edu
Sun Oct 2 20:28:07 CEST 2005


PsTrickers,

In recent versions of pstricks-add, there seems to be shifting both horizontal and vertical
of the graph.  Perhaps the problem is more in the calculation of the origin.

Attached is a pdf to illustrate, the source file and the log file.


Regards,

dps



-------------- next part --------------
\listfiles
\documentclass{article}
\usepackage{pstricks-add}

\parindent0pt
\parskip6pt

\begin{document}

In recent versions of pstricks-add, there has been some shifting of the graph and axes labeling.
for example, the following uses \texttt{psgraph}

\psset{llx =-16pt,lly=-16pt,urx =16pt,ury =16pt}%
\begin{psgraph*}[arrows=->](-.5,-1)(7,1){\linewidth}{6cm}%
\psset{algebraic=true}%
\psplot{0}{TwoPi}{sin(x)}%
\end{psgraph*}

The graph is shifted up one unit and shifted right by about .5 unit. The labeling
is also shifted. the scaling of the vertical axis is not correct either, it should range
from $-1$ to $1$, not $0$ to $2$.


The next graph uses the old \texttt{pspicture} environment. The graph here looks correct.

\begin{pspicture*}(-1,-1.5)(7.5,1.5)
\psaxes{->}(0,0)(-.5,-1)(7,1)
\psset{algebraic=true}
\psplot{0}{TwoPi}{sin(x)}
\end{pspicture*}


\end{document}
-------------- next part --------------
Y&Y TeX 2.2.3 2000 Jun 22 10:12:20 SN 4662
Copyright (C) 1993--2000 Y&Y, Inc.  (978) 371-3286  http://www.YandY.com
This is TeX, Version 3.14159 (Y&Y TeX 2.2.3) (format=latex 2000.7.7)  2005 OCT 2 14:22
**+latex plot_gilg.tex
(C:/yandy/YANDYTEX/FMT/latex.fmt)
(plot_gilg.tex
LaTeX2e <1999/12/01> patch level 1
(c:/yandy/tex/latex/unpacked/article.cls
Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
(c:/yandy/tex/latex/unpacked/size10.clo
File: size10.clo 1999/09/10 v1.4a Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (pstricks-add.sty
(c:/yandy/tex/latex/contrib/pstricks/latex/pstricks.sty
Package: pstricks 2005/06/02 v0.24 LaTeX wrapper for `PSTricks' (RN,HV)

(c:/yandy/tex/latex/contrib/pstricks/generic/pstricks.tex
`PSTricks' v1.10  <2005/08/13> (tvz)
\pst at dima=\dimen103
\pst at dimb=\dimen104
\pst at dimc=\dimen105
\pst at dimd=\dimen106
\pst at dimg=\dimen107
\pst at dimh=\dimen108
\pst at hbox=\box26
\pst at boxg=\box27
\pst at cnta=\count87
\pst at cntb=\count88
\pst at cntc=\count89
\pst at cntd=\count90
\pst at cntg=\count91
\pst at cnth=\count92
\pst at toks=\toks14
(C:/YANDY/TEXINPUT/pstricks.con)
\psunit=\dimen109
\psxunit=\dimen110
\psyunit=\dimen111
\pslinewidth=\dimen112
\pst at customdefs=\toks15
\pslinearc=\dimen113
\everypsbox=\toks16
\psframesep=\dimen114
\pslabelsep=\dimen115
\theoverlaybox=\box28
 (C:/YANDY/TEXINPUT/pstricks.con))
File: pstricks.tex 2005/08/13 v1.10 `PSTricks' (tvz)

(c:/yandy/tex/latex/contrib/xcolor/xcolor.sty
Package: xcolor 2004/07/04 v2.00 LaTeX color extensions (UK)

(c:/yandy/tex/latex/required/graphics/color.cfg)
Package xcolor Info: Package option `override' ignored on input line 124.
Package xcolor Info: Driver file: dvipsone.def on input line 132.

(c:/yandy/tex/latex/required/graphics/dvipsone.def
File: dvipsone.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
Package xcolor Info: Color model `cmy' added on input line 968.
Package xcolor Info: Color model `HTML' added on input line 996.
Package xcolor Info: Color model `HSB' added on input line 1002.
Package xcolor Info: Color model `Gray' added on input line 1008.
))
Package: pstricks-add 2005/03/03 package wrapper for pstricks-add.tex (hv)
 (pstricks-add.tex
(c:/yandy/tex/latex/contrib/pstricks/generic/pst-plot.tex
 v97 patch 2, 1999/12/12
(c:/yandy/tex/latex/contrib/pstricks/generic/multido.tex  v1.4, 93/01/14 <tvz>
\multido at count=\count93
\multidocount=\count94
\multido at stuff=\toks17
)) (c:/yandy/tex/latex/contrib/pstricks/generic/pst-node.tex
 v97 patch 11, 2000/11/09
\psrow=\count95
\pscol=\count96
\psmatrixcnt=\count97
\psrowsep=\skip43
\pscolsep=\skip44
) (c:/yandy/tex/latex/contrib/xkeyval/run/pst-xkey.tex
File: pst-xkey.tex 2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
(c:/yandy/tex/latex/contrib/xkeyval/run/xkeyval.sty
Package: xkeyval 2005/05/07 v2.5 package option processing (HA)

(c:/yandy/tex/latex/contrib/xkeyval/run/xkeyval.tex
\XKV at toks=\toks18
\XKV at depth=\count98
File: xkeyval.tex 2005/05/07 v2.5 key=value parser (HA)

(c:/yandy/tex/latex/contrib/xkeyval/run/keyval.tex))))
`pstricks-add' v2.63, 2005/09/18 (hv)
\pst at dimm=\dimen116
\pst at dimn=\dimen117
\pst at dimo=\dimen118
\pst at dimp=\dimen119
\pst at cntm=\count99
\pst at cntn=\count100
\pst at cnto=\count101
\pst at cntp=\count102
\@zero=\count103
\pst at braceWidth=\dimen120
\pshooklength=\dimen121
\pshookwidth=\dimen122
\pswBegin=\dimen123
\pswEnd=\dimen124
\@digitcounter=\count104
\psk at subticksize=\dimen125
\pst at xticksizeA=\dimen126
\pst at xticksizeB=\dimen127
\pst at xticksizeC=\dimen128
\pst at yticksizeA=\dimen129
\pst at yticksizeB=\dimen130
\pst at yticksizeC=\dimen131
\psk at llx=\dimen132
\psk at lly=\dimen133
\psk at urx=\dimen134
\psk at ury=\dimen135
\pst at xunit=\dimen136
\pst at yunit=\dimen137
\linecnt=\count105
)
File: pstricks-add.tex 2005/09/18 v2.63 `PSTricks-add' (hv)
) (plot_gilg.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 14.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 14.

Overfull \hbox (32.0pt too wide) in paragraph at lines 17--18
[][] 
 []

[1

] (plot_gilg.aux)

 *File List*
 article.cls    1999/09/10 v1.4a Standard LaTeX document class
  size10.clo    1999/09/10 v1.4a Standard LaTeX file (size option)
pstricks-add.sty    2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks.sty    2005/06/02 v0.24 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2005/08/13 v1.10 `PSTricks' (tvz)
  xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
   color.cfg
dvipsone.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex    2005/09/18 v2.63 `PSTricks-add' (hv)
pst-xkey.tex    2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2005/05/07 v2.5 package option processing (HA)
 xkeyval.tex    2005/05/07 v2.5 key=value parser (HA)
 ***********

 ) 

Here is how much of TeX's memory you used:
 2817 strings out of 10000
 34288 string characters out of 80000
 133773 words of memory out of 212288
 5686 multiletter control sequences out of 32000
 3905 words of font info for 15 fonts, out of 43737 for 1023
 14 hyphenation exceptions out of 1009
 37i,5n,53p,239b,357s stack positions out of 100i,100n,100p,1000b,1000s
 (i = instack, n = neststack, p = paramstack, b = bufstack, s = savestack)
 7 inputs open max out of 127

Success at breaking 5 paragraphs:
 2 single line `paragraphs'
 2 first pass (\pretolerance = 100)
 1 second pass (\tolerance = 200)

 1 overfull \hbox

Used 3 fonts:
 cmr10           at 10pt         encoding: mr1_57..
 cmsy10          at 10pt         encoding: frf38k..
 cmtt10          at 10pt         encoding: -1r_56..

Output written on C:/Documents and Settings/Donald Story/Desktop/pstricks/plot_
gilg.dvi (1 page, 14400 bytes).
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  plot_gilg.pdf
     Date:  2 Oct 2005, 14:22
     Size:  15904 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_gilg.pdf
Type: application/octet-stream
Size: 15904 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20051002/52b8bfa6/attachment.obj 


More information about the PSTricks mailing list