[pstricks] PSTricks Digest, Vol 90, Issue 34

Doan Huy Hien doanhuyhien at gmail.com
Mon Jul 26 02:21:58 CEST 2010


Dear Hirbert,

Thanks for your kind support, I get the figure as it is.

Sincerely yours,
Doan Huy Hien.


> Message: 3
> Date: Fri, 23 Jul 2010 09:54:17 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: pstricks at tug.org
> Subject: Re: [pstricks] asking for ploting file in the semi log axis
> Message-ID: <4C494AA9.7050804 at FU-Berlin.DE>
> Content-Type: text/plain; charset="utf-8"
>
> Am 23.07.2010 03:49, schrieb Doan Huy Hien:
>
> > I have a gamma ray spectral data file named Sheet.txt and I would like
> > to plot by using PStricks that I have found very interesting. However I
> > can not get the figure as it is by using dataplot.
> >
> > I attached here the latex file, data file and the one I create from an
> > other program. Could you please help me to clarify this problems.
>
> you have to use \listplot for a logarithmic scaling.
> However, y values of 0 cannot be plotted as log 0,
> you have to test it with a setting of \pstScalePoints
>
>
> \documentclass[12pt,a4paper]{article}
> \usepackage{pstricks-add}
> \begin{document}
>
> \readdata{\data}{Sheet1.txt}
> \pstScalePoints(1,1){}{ dup 0 eq { pop -8 }{ log } ifelse 8 add }
>
> \begin{psgraph}[arrows=->,Dx=0.4,ylogBase=10,Oy=-8](0,0)(2.1,6){10cm}{8cm}
>  \listplot[linewidth=1pt,linecolor=blue]{\data}
> \end{psgraph}
>
> \end{document}
>
> Herbert
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: x.png
> Type: image/png
> Size: 5020 bytes
> Desc: not available
> URL: <
> http://tug.org/pipermail/pstricks/attachments/20100723/efa6e002/attachment-0001.png
> >
>
> ------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> End of PSTricks Digest, Vol 90, Issue 34
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100726/4e740a99/attachment.html>


More information about the PSTricks mailing list