[pstricks] log-log-labeling

Poul Riis Poul.Riis at skolekom.dk
Fri Sep 2 23:48:47 CEST 2011


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...?

Poul Riis



\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=500cm,yunit=500cm,labelFontSize=\scriptstyle}
\readdata{\datatp}{cansat_t_p.txt}
\begin{pspicture}(-0.012,-0.02)(0.01,0.002)
\psaxes[axesstyle=frame,logLines=xy, xlogBase=10,ylogBase=10,
Dx=0.01,Dy=0.01,xticksize=-0.02 0.002, xsubticksize=1,yticksize=-0.012
0.01,ysubticksize=1, subticks=10, tickcolor=Orange3,
subtickcolor=Orange1]{->}(0,0)(-0.012,-0.02)(0.01,0.002)
\psaxes[labels=none,ticks=none]{->}(0,0)(-0.012,-0.02)(0.01,0.002)
\pstScalePoints(1,1){291.76 div log}{100.92 div log}%
\listplot[dotsize=1.5pt, linecolor=Green3, plotstyle=dots]{\datatp}%
\begin{psclip}{\psframe(-0.012,-0.02)(0.01,0.002)}
\psplot[linecolor=Red2,plotpoints=2]{-0.01}{0.01}{x 5.2575447 mul}
\end{psclip}
\uput{3pt}[270]{0}(0.008,0){\small $\log(T/T_0)$}
\uput{3pt}[0]{0}(0,0.0015){\small $\log(p/p_0)$}
\end{pspicture}
\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110902/ab1a8fb1/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cansat_t_p.txt
URL: <http://tug.org/pipermail/pstricks/attachments/20110902/ab1a8fb1/attachment.txt>


More information about the PSTricks mailing list