summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/tikz-osci/doc/tikz-osci-example.tex
blob: 182ef488ed49f80deb1d0d5180a410556b3a758f (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
\documentclass[11pt,a4paper,usenames,dvipsnames]{article}

\usepackage{../tikz-osci}

% Use sans serif font
\renewcommand{\familydefault}{\sfdefault}

\begin{document}

\begin{center}

    \osci[%
        scale=0.7
    ]

    \vspace*{0.3cm}

    \osci[%
        scale=0.7,
        rounded corners=5,
        second channel=1,
        screen offset one=2,
        screen offset two=-2,
        time div=20,
        voltage div one=4,
        voltage div two=1,
        sample rate=200,
        xy mode=0,
        func one=2*sin(2*180/0.020*x),
        func two=1*sin(2*180/0.020*x)+0.2*sin(2*180/0.040*x),
        indicators=0,
        color one=D62626,
        color two=1053AF,
        graph back color=777799,
        info back color=333333,
        info text color=FFFFFF,
        main axis color=DDDDDD,
        grid color=CCCCCC,
    ]

    \vspace*{0.3cm}

    \osci[%
        scale=0.7,
        rounded corners=0,
        second channel=1,
        screen offset one=2,
        screen offset two=-2,
        time div=20,
        voltage div one=4,
        voltage div two=10,
        sample rate=200,
        xy mode=0,
        func one=2*sin(2*180/0.020*x),
        func two=10*sin(2*180/0.010*x)+5*sin(2*180/0.020*x),
        indicators=1,
        color one=F0DE25,
        color text one=000000,
        color two=F0DE25,
        color text two=000000,
        graph back color=668866,
        info back color=D6D6D6,
        info text color=000000,
        main axis color=000000,
        grid color=CCCCCC,
    ]

\end{center}

\newpage

\begin{center}
    \osci[%
        scale=0.7,
        second channel=1,
        time div=300,
        voltage div one=1,
        voltage div two=0.5,
        sample rate=500,
        xy mode=1,
        func one=sin(7*x),
        func two=sin(2*x),
        indicators=1,
        graph back color=FFFFFF,
        info back color=D6D6D6,
        info text color=000000,
        main axis color=000000,
        grid color=CCCCCC,
    ]

    \vspace*{0.3cm}

    \osci[%
        scale=0.7,
        second channel=1,
        time div=1000,
        voltage div one=1,
        voltage div two=1,
        sample rate=500,
        xy mode=1,
        func one=3*sin(2*x),
        func two=3*sin(2*x+45),
        indicators=1,
        graph back color=FFFFFF,
        info back color=D6D6D6,
        info text color=000000,
        main axis color=000000,
        grid color=CCCCCC,
    ]

    \vspace*{0.3cm}

    \osci[%
        scale=0.7,
        second channel=1,
        time div=10,
        voltage div one=2,
        voltage div two=2,
        sample rate=500,
        xy mode=0,
        math mode=3,
        math mode hide source=0,
        func one=2*sin(2*180/0.040*x),
        func two=3*sin(2*180/0.005*x),
        indicators=0,
        graph back color=FFFFFF,
        info back color=D6D6D6,
        info text color=000000,
        main axis color=000000,
        grid color=CCCCCC,
    ]

\end{center}

\newpage

\begin{center}

    \osci[%
        scale=0.7,
        second channel=1,
        time div=10,
        voltage div one=2,
        voltage div two=2,
        sample rate=500,
        xy mode=0,
        math mode=3,
        math mode hide source=1,
        func one=2*sin(2*180/0.040*x),
        func two=3*sin(2*180/0.005*x),
        indicators=0,
        graph back color=FFFFFF,
        info back color=D6D6D6,
        info text color=000000,
        main axis color=000000,
        grid color=CCCCCC,
    ]

\end{center}


\end{document}