[pstricks] Grid and labels

Poul Riis Poul.Riis at skolekom.dk
Sun Aug 21 10:01:16 CEST 2011


1) Grids always give me problems. In the example below I can control
xticksize but not yticksize (I want the grid lines to stop at x=100).
What's wrong?

2) No matter what I do can't find my labels? How can I make them visible?

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}
syt\\
\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)(110,4.2)
\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/ed4b7222/attachment.html>


More information about the PSTricks mailing list