summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples-en/33-02-46.ltx
blob: fd1f55ad78ab6ff9a9daa9ea8e2c63f71f6371c8 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
%% 
%%  A DANTE-Edition example
%% 
%%  Example 33-02-46 on page 683.
%% 
%%  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{177.70511pt}
\setlength\parindent{0pt}
\usepackage{filecontents}
\begin{filecontents*}{data1.mat}
 -1.0000000e+001 -3.1186120e-001
 -9.5000000e+000 -3.1382220e-001
 -9.0000000e+000 -3.1610308e-001
 -8.5000000e+000 -3.1874224e-001
 -8.0000000e+000 -3.2177814e-001
 -7.5000000e+000 -3.2524775e-001
 -7.0000000e+000 -3.2918480e-001
 -6.5000000e+000 -3.3361772e-001
 -6.0000000e+000 -3.3856759e-001
 -5.5000000e+000 -3.4404614e-001
 -5.0000000e+000 -3.5005399e-001
 -4.5000000e+000 -3.5657933e-001
 -4.0000000e+000 -3.6359717e-001
 -3.5000000e+000 -3.7106902e-001
 -3.0000000e+000 -3.7894319e-001
 -2.5000000e+000 -3.8715537e-001
 -2.0000000e+000 -3.9562939e-001
 -1.5000000e+000 -4.0427825e-001
 -1.0000000e+000 -4.1300527e-001
 -5.0000000e-001 -4.2170561e-001
  0.0000000e+000 -4.3026847e-001
  5.0000000e-001 -4.5284882e-001
  1.0000000e+000 -4.8524584e-001
  1.5000000e+000 -5.2154969e-001
  2.0000000e+000 -5.6193985e-001
  2.5000000e+000 -6.0664420e-001
  3.0000000e+000 -6.5595407e-001
  3.5000000e+000 -7.1023618e-001
  4.0000000e+000 -7.6994081e-001
  4.5000000e+000 -8.3560655e-001
  5.0000000e+000 -9.0786295e-001
\end{filecontents*}
\begin{filecontents*}{data2.mat}
 -1.0000000e+001 -3.0170171e-001
 -9.5000000e+000 -3.0182275e-001
 -9.0000000e+000 -3.0197731e-001
 -8.5000000e+000 -3.0217679e-001
 -8.0000000e+000 -3.0243768e-001
 -7.5000000e+000 -3.0278484e-001
 -7.0000000e+000 -3.0325664e-001
 -6.5000000e+000 -3.0391260e-001
 -6.0000000e+000 -3.0484295e-001
 -5.5000000e+000 -3.0617875e-001
 -5.0000000e+000 -3.0809964e-001
 -4.5000000e+000 -3.1083660e-001
 -4.0000000e+000 -3.1466753e-001
 -3.5000000e+000 -3.1990577e-001
 -3.0000000e+000 -3.2688343e-001
 -2.5000000e+000 -3.3593295e-001
 -2.0000000e+000 -3.4737023e-001
 -1.5000000e+000 -3.6148225e-001
 -1.0000000e+000 -3.7852034e-001
 -5.0000000e-001 -3.9869936e-001
  0.0000000e+000 -4.2220206e-001
  5.0000000e-001 -4.4918738e-001
  1.0000000e+000 -4.7980138e-001
  1.5000000e+000 -5.1418989e-001
  2.0000000e+000 -5.5251165e-001
  2.5000000e+000 -5.9495142e-001
  3.0000000e+000 -6.4173231e-001
  3.5000000e+000 -6.9312654e-001
  4.0000000e+000 -7.4946429e-001
  4.5000000e+000 -8.1114012e-001
  5.0000000e+000 -8.7861718e-001
\end{filecontents*}

\usepackage[color]{makeplot}

\begin{document}
\begin{makeplot}[startX=-10,endX=5,startY=-1,
    endY=0,Dx=5,width=40,heightFactor=1,
    ylogBase=10,logLines=y,subticks=10,
    ticklinestyle=dashed,mathLabel=false,
    subticklinestyle=dotted,
    xsubticks=1]{$P_e$}{{WNyR, [dB]}}
  \plotFileA{data1.mat}\plotFileB{data2.mat}
  \legendDL{24.5}{2} \legendAf{UDQ-QIM}
  \legendBf{UQ-QIM}
\end{makeplot}
\end{document}