Skip to content

Commit e4dbf4e

Browse files
authored
Merge pull request #16226 from timhoffm/doc-overview
Reorganize intro section on main page
2 parents ab098f2 + e1b9dd1 commit e4dbf4e

File tree

2 files changed

+71
-23
lines changed

2 files changed

+71
-23
lines changed

doc/_static/mpl.css

+35
Original file line numberDiff line numberDiff line change
@@ -1219,3 +1219,38 @@ hr.box-sep {
12191219
flex: 0 0 90%;
12201220
}
12211221
}
1222+
1223+
/* bullet boxes on main page */
1224+
div.bullet-box-container {
1225+
display: flex;
1226+
flex-wrap: wrap;
1227+
margin: 1em 0;
1228+
}
1229+
1230+
div.bullet-box {
1231+
flex-grow: 1;
1232+
width: 28%;
1233+
margin: 0.4em;
1234+
padding: 0 1em;
1235+
background: #eff9ff;
1236+
}
1237+
1238+
div.bullet-box p:first-of-type {
1239+
font-size: 1.4em;
1240+
text-align: center;
1241+
}
1242+
1243+
div.bullet-box ul {
1244+
padding-left: 1.2em;
1245+
}
1246+
1247+
div.bullet-box li {
1248+
padding-left: 0.3em;
1249+
margin-bottom: 0.3em;
1250+
}
1251+
1252+
@media only screen and (max-width: 930px){
1253+
div.bullet-box {
1254+
flex: 0 0 90%;
1255+
}
1256+
}

doc/index.rst

+36-23
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
.. title:: Matplotlib: Python plotting
44

5-
Matplotlib is a Python 2D plotting library which produces publication quality
6-
figures in a variety of hardcopy formats and interactive environments across
7-
platforms. Matplotlib can be used in Python scripts, the Python and IPython_
8-
shells, the Jupyter_ notebook, web application servers, and four graphical user
9-
interface toolkits.
5+
Matplotlib: Visualization with Python
6+
-------------------------------------
107

11-
.. _IPython: http://ipython.org
12-
.. _Jupyter: http://jupyter.org
8+
Matplotlib is a comprehensive library for creating static, animated,
9+
and interactive visualizations in Python.
1310

1411
.. raw:: html
1512

@@ -35,32 +32,48 @@ interface toolkits.
3532
</div>
3633
<span class="clear_screenshots"></span>
3734

38-
Matplotlib tries to make easy things easy and hard things possible. You
39-
can generate plots, histograms, power spectra, bar charts, errorcharts,
40-
scatterplots, etc., with just a few lines of code. For examples, see the
41-
:doc:`sample plots <tutorials/introductory/sample_plots>` and :doc:`thumbnail
42-
gallery <gallery/index>`.
35+
Matplotlib makes easy things easy and hard things possible.
4336

44-
For simple plotting the :mod:`.pyplot` module provides a MATLAB-like interface,
45-
particularly when combined with IPython. For the power user, you have full
46-
control of line styles, font properties, axes properties, etc, via an object
47-
oriented interface or via a set of functions familiar to MATLAB users.
37+
.. container:: bullet-box-container
38+
39+
.. container:: bullet-box
40+
41+
Create
42+
43+
- Develop `publication quality plots`_ with just with just a few lines of code
44+
- Use `interactive figures`_ that can zoom, pan, update...
45+
46+
.. _publication quality plots: https://matplotlib.org/gallery/index.html
47+
.. _interactive figures: https://matplotlib.org/gallery/index.html#event-handling
48+
49+
.. container:: bullet-box
50+
51+
Customize
52+
53+
- `Take full control`_ of line styles, font properties, axes properties...
54+
- `Export and embed`_ to a number of file formats and interactive environments
55+
56+
.. _Take full control: https://matplotlib.org/tutorials/index.html#tutorials
57+
.. _Export and embed: https://matplotlib.org/api/index_backend_api.html
58+
59+
.. container:: bullet-box
60+
61+
Extend
62+
63+
- Explore tailored functionality provided by
64+
:doc:`third party packages <thirdpartypackages/index>`
65+
- Learn more about matplotlib through the many
66+
:doc:`external learning resources <resources/index>`
4867

4968
Documentation
50-
-------------
69+
~~~~~~~~~~~~~
5170

5271
To get started, read the :doc:`User's Guide <users/index>`.
5372

5473
Trying to learn how to do a particular kind of plot? Check out the
5574
:doc:`examples gallery <gallery/index>` or the :doc:`list of plotting commands
5675
<api/pyplot_summary>`.
5776

58-
Other learning resources
59-
~~~~~~~~~~~~~~~~~~~~~~~~
60-
61-
There are many :doc:`external learning resources <resources/index>` available
62-
including printed material, videos and tutorials.
63-
6477
Join our community!
6578
~~~~~~~~~~~~~~~~~~~
6679

0 commit comments

Comments
 (0)