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