[pstricks] log-log-labeling

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Sep 3 11:18:32 CEST 2011


Am 02.09.2011 23:48, schrieb Poul Riis:
> The labeling of the plot below (data file attached) is certainly not
> satisfactory. Will I have to make manual manipulations or is there a more
> automatic way...?

use another scaling, eg:

\documentclass[a4paper,12pt]{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[x11names]{xcolor}
\usepackage{pst-func,pst-plot}
\usepackage{pstricks-add}

\begin{document}
\psset{xunit=5cm,yunit=5cm,labelFontSize=\scriptstyle}
\readdata{\datatp}{cansat_t_p.txt}
\begin{pspicture}(-1.2,-2)(1,0.2)
\psaxes[axesstyle=frame,logLines=xy, xlogBase=10,
         ylogBase=10,dx=5cm,xticksize=-2 0.2,
         xsubticksize=1,yticksize=-1.2 1,
         dy=5cm,
         ysubticksize=1, subticks=10, tickcolor=Orange3,
         subtickcolor=Orange1]{->}(0,0)(-1.2,-2)(1,0.2)
\psaxes[labels=none,ticks=none]{->}(0,0)(-1.2,-2)(1,0.2)%
   [\kern-3.5em$\scriptstyle\log(T/T_0)$,-90][$\scriptstyle\log(p/p_0)$,-30]
\pstScalePoints(1,1){291.76 div log 100 mul}{100.92 div log 100 mul}%
\listplot[dotsize=1.5pt, linecolor=Green3, plotstyle=dots]{\datatp}%
\begin{psclip}{\psframe(-1.2,-2)(1,0.2)}
\psplot[linecolor=Red2,plotpoints=2]{-1}{1}{x 5.2575447 mul}
\end{psclip}
\end{pspicture}
\end{document}


Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto.png
Type: image/png
Size: 10340 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20110903/fd3ba071/attachment-0001.png>


More information about the PSTricks mailing list