[pstricks] Ghostscript (or PostScript) errors reproducing pst-func examples

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Aug 18 09:04:22 CEST 2017


Am 18.08.2017 um 08:16 schrieb Patrice MEGRET:

> If you change the integration limits to -+12 instead of -+14.5, everything works perfectly.
> 
> I suspect that you have some rounding effects or 0/0 that make ps error.

Yes, that maybe a problem with small values for plotpoints, but not for
plotpoints=1000.

However, it always wors for me.

Herbert


\listfiles
\documentclass{minimal}
\usepackage{pst-plot}
\usepackage{pst-func}
\begin{document}
	
\psset{xunit=0.5,yunit=2}
\begin{pspicture}(-15,-4.5)(15,2)
\psaxes[Dx=2]{->}(0,0)(-15.1,-4)(15,2)
\psplot[plotpoints=1000,algebraic]{-14.5}{14.5}{sin(x)/x}
\psSi[plotpoints=1500,linecolor=red,linewidth=1pt]{-14.5}{14.5}
\pssi[plotpoints=1500,linecolor=blue,linewidth=1pt]{-14.5}{14.5}
\rput(-5,1.5){\textcolor{red}{$\displaystyle 
Si(x)=\int\limits_0^x\frac{\sin(t)}{t}dt$}}
\rput(8,-1.5){\textcolor{blue}{$\displaystyle si(x)=-\int\limits_x^{\infty}
		\frac{\sin(t)}{t}dt=Si(x)-\frac{\pi}{2}$}}
\rput(8,.7){$\displaystyle f(x)= \frac{\sin(t)}{t}$}
\end{pspicture}
	
\end{document}



*File List*
  minimal.cls    2001/05/25 Standard LaTeX minimal class
pst-plot.sty    2011/04/13 package wrapper for pst-plot.tex (hv)
pstricks.sty    2017/03/17 v0.63 LaTeX wrapper for `PSTricks' (RN,HV)
   xcolor.sty    2016/05/11 v2.12 LaTeX color extensions (UK)
    color.cfg    2016/01/02 v1.6 sample color configuration
    xetex.def    2017/06/24 v5.0h Graphics/color driver for xetex
pstricks.tex    2017/06/15 v2.74 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
  xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
   pst-fp.tex    2017/06/15 v2.74 `PST-fp' (hv)
pstricks.pro    2012/10/16 v. 1.15, PostScript prologue file (hv)
pst-algparser.pro    2011/10/31 v. 0.04, PostScript prologue file (hv)
pst-tools.pro    2012/01/01 v. 0.02, PostScript prologue file (hv)
pst-dots.pro    2006/12/19 v. 2.00, PostScript prologue file (hv)
pst-xkey.sty    2005/11/25 v1.6 package wrapper for pst-xkey.tex (HA)
  multido.sty    2004/05/17 package wrapper for PSTricks `multido.tex', 
(HV/RN)
  multido.tex    2010/05/14 v1.42 `multido' (tvz,hv)
pst-plot.tex    2017/05/23 1.80 `pst-plot' (tvz,hv)
pst-func.sty    2013/06/03 package wrapper for pst-func.tex (hv)
pst-func.tex    2017/08/03 v0.87 `PST-func' (hv)
pst-func.pro    2014/05/07 v. 0.16, PostScript prologue file (hv)
  ***********
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2017-08-18 09-03-57.png
Type: image/png
Size: 38423 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20170818/8dab0865/attachment-0001.png>


More information about the PSTricks mailing list