summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples-en/15-05-1.ltx
blob: cfc279e599e2b8e18e557c392ae9aa13e22a3f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%% 
%%  A DANTE-Edition example
%% 
%%  Example 15-05-1 on page 224.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}
\setlength\parindent{0pt}

\usepackage{pst-plot}

\begin{document}
\def\data{0.003472 -13.159  0.003332 -12.859  0.003246 -11.27}
\pstScalePoints(1000,1){}{ abs }% absolute values
\psset{xunit=30cm}
\begin{pspicture}(3.2,11.1)(3.5,15)
  \psaxes[dy=1cm,Dy=-1.0,Oy=-11.2,dx=3cm,Dx=0.0001,Ox=0.0032,
    labelFontSize=\footnotesize,mathLabel=false]{->}(3.2,11.2)(3.5,14.0)
  \listplot[showpoints,linewidth=1pt]{\data}
\end{pspicture}\\[-5pt]  %-------------------------------------------
\begin{pspicture}(3.2,0)(3.5,1)
  \psaxes[yAxis=false,dy=1cm,Dy=-1.0,Oy=-11.2,%
     dx=1.5cm,Dx=0.00005,Ox=0.00320,
    labelFontSize=\footnotesize,mathLabel=false]{->}(3.2,0)(3.5,1)
\end{pspicture}\\  %-------------------------------------------
\begin{pspicture}(3.2,-0.75)(3.5,1)
  \psaxes[yAxis=false,dy=1cm,Dy=-1.0,Oy=-11.2,%
     dx=3cm,Dx=0.1,Ox=3.2,xlabelFactor={\times 10^{-3}},
    labelFontSize=\scriptstyle,mathLabel]{->}(3.2,0)(3.5,1)
\end{pspicture}\\[-25pt]  %-------------------------------------------
\pstScalePoints(1000,1){}{}% absolute values
\begin{pspicture}(3.2,-10)(3.5,-15)
  \psaxes[dy=1cm,Dy=1.0,Oy=-11.2,dx=3cm,Dx=0.0001,Ox=0.0032,
    labelFontSize=\footnotesize,mathLabel=false]{->}(3.2,-11.2)(3.5,-14.0)
  \listplot[showpoints,linewidth=1pt]{\data}
\end{pspicture}
\end{document}