[pstricks] Grid and labels
Poul Riis
Poul.Riis at skolekom.dk
Sun Aug 21 11:17:35 CEST 2011
Sorry - even my first question was wrong. And it comes to my mind that I
have asked this question before. Still, I find that the it would be
preferable if the missing grid lines in my example were added
automatically by default. Maybe they are by just adding some simple option?
Poul Riis
\documentclass[a4paper,12pt]{article}
\usepackage[svgnames,x11names]{xcolor}
\usepackage{filecontents}
\usepackage{pst-func,pst-plot}
\usepackage{pstricks-add}
\pagestyle{empty} \topmargin=0cm \textwidth=17cm
\textheight=25.5cm \hoffset=-0.5cm \tolerance=5000 \hbadness=5000
\pretolerance=2500
\begin{document}
\begin{filecontents*}{ntc.data}
-40 2007.700
-30 1032.000
-20 551.720
-10 305.940
0 175.510
10 103.920
20 63.370
25 50.000
30 39.711
40 25.524
50 16.795
60 11.295
70 7.7509
80 5.4187
90 3.8539
100 2.7846
\end{filecontents*}
\readdata{\data}{ntc.data}
\psset{xunit=0.5mm,yunit=2cm}
\psset{xAxisLabel=Temperature,yAxisLabel=Resistance,xAxisLabelPos={c,0},yAxisLabelPos={-7,2},labelFontSize=\scriptstyle}
\begin{pspicture}(-80,-0.1)(110,4.2)
\psaxes[logLines=y, ylogBase=10, Dx=20,Dy=1,xticksize=0 4,
xsubticksize=1,yticksize=-80 100,ysubticksize=1, xsubticks=5,ysubticks=10,
tickcolor=Orange3, subtickcolor=Orange1]{->}(0,0)(-80,0)(100,4)
\psplot[linewidth=0.25pt, linecolor=Blue2,
algebraic=true]{-40}{100}{log(76.440*EXP(-0.03444*x) +
99.080*EXP(-2*0.0344*x))}
\pstScalePoints(1,1){}{log}
\listplot[linewidth=0.5pt, linecolor=Red2, plotstyle=dots]{\data}
\end{pspicture}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110821/01ff9ea9/attachment-0001.html>
More information about the PSTricks
mailing list