File: demo_html_1.input.html

package info (click to toggle)
doxysphinx 3.3.12-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,296 kB
  • sloc: python: 2,974; javascript: 235; cpp: 88; makefile: 52; sh: 10
file content (39 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download
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
<html>

<head>
    <title>demo : html 1</title>
</head>

<body>
    <div class="textblock">
        <p>A car. </p>
        <pre class="fragment">embed:rst:leading-asterisk
            *  .. warning::
            *     This car is a top secret prototype.
            * 
            *  </pre>
        <p>Here is a plot to show it's true power:</p>
        <pre class="fragment">embed:rst:leading-asterisk
            *  .. plot::
            * 
            *    import matplotlib
            *    import matplotlib.pyplot as plt
            *    import numpy as np
            * 
            *    # Data for plotting
            *    t = np.arange(0.0, 2.0, 0.01)
            *    s = 1 + np.sin(2 * np.pi * t)
            * 
            *    fig, ax = plt.subplots()
            *    ax.plot(t, s)
            * 
            *    ax.set(xlabel='time (s)', ylabel='voltage (mV)',
            *          title='About as simple as it gets, folks')
            *    ax.grid()
            * 
            *    plt.show()
            *  </pre>
    </div>
</body>

</html>