@@ -11,18 +11,28 @@ User guide
11
11
.. grid-item-card :: Starting information
12
12
:padding: 2
13
13
14
- .. raw :: html
15
-
16
- <div class =" grid__intro" id =" image_rotator" ></div >
17
-
14
+ .. plot ::
15
+
16
+ x = np.linspace(0, 2, 100) # Sample data.
17
+
18
+ fig, ax = plt.subplots(figsize=(5, 2.7), layout='constrained')
19
+ ax.scatter(x, np.random.randn(len(x)) + x**2,
20
+ s=13 * np.random.rand(len(x)), c=np.random.randn(len(x)),
21
+ label='noisy data')
22
+ ax.plot(x, x, label='linear') # Plot some data on the axes.
23
+ ax.plot(x, x**2, label='quadratic') # Plot more data on the axes...
24
+ ax.plot(x, x**3, label='cubic') # ... and some more.
25
+ ax.set_xlabel('x label') # Add an x-label to the axes.
26
+ ax.set_ylabel('y label') # Add a y-label to the axes.
27
+ ax.set_title("Simple plot") # Add a title to the axes.
28
+ ax.legend() # Add a legend.
18
29
19
30
.. toctree ::
20
31
:maxdepth: 1
21
32
22
33
getting_started/index.rst
23
34
installing/index.rst
24
35
faq/index.rst
25
- resources/index.rst
26
36
27
37
.. grid-item-card :: Users guide
28
38
:padding: 2
@@ -41,10 +51,12 @@ User guide
41
51
../plot_types/index.rst
42
52
../gallery/index.rst
43
53
../tutorials/index.rst
54
+ resources/index.rst
55
+
44
56
45
57
.. raw :: html
46
58
47
- <div class =" grid__intro" id =" image_rotator2 " ></div >
59
+ <div class =" grid__intro" id =" image_rotator " ></div >
48
60
49
61
50
62
.. grid-item-card :: More information
0 commit comments