Skip to content

Commit 0cb6b38

Browse files
committed
Reorganize intro section on main page
1 parent e8b2793 commit 0cb6b38

File tree

2 files changed

+70
-17
lines changed

2 files changed

+70
-17
lines changed

doc/_static/mpl.css

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

doc/index.rst

+35-17
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: 2D visualization in Python
6+
--------------------------------------
107

11-
.. _IPython: http://ipython.org
12-
.. _Jupyter: http://jupyter.org
8+
Matplotlib supports your visualization tasks, from simple one-off plotting to
9+
complex, publication quality and interactive figures.
1310

1411
.. raw:: html
1512

@@ -35,19 +32,40 @@ 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>`.
4335

44-
For simple plotting the `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.
36+
.. container:: bullet-box-container
37+
38+
.. container:: bullet-box
39+
40+
Create
41+
42+
- Easy creation of numerous standard plots
43+
- Publication quality output to various file formats
44+
(png, pdf, svg, ps, ...)
45+
- Interactive figures (zoom, pan, ...)
46+
47+
.. container:: bullet-box
48+
49+
Customize
50+
51+
- Adapt and tune all aspects of your plot
52+
- Embed in interactive environments (e.g. IPython_, Jupyter_)
53+
- Respond to user actions based on the event system
54+
55+
.. _IPython: http://ipython.org
56+
.. _Jupyter: http://jupyter.org
57+
58+
.. container:: bullet-box
59+
60+
Extend
61+
62+
- Use additional tailored functionality through
63+
:doc:`third party packages <thirdpartypackages/index>`
64+
- Embed in GUI applications (Qt, Tk, Gtk3, Wx)
65+
- Serve from web servers
4866

4967
Documentation
50-
-------------
68+
~~~~~~~~~~~~~
5169

5270
This is the documentation for Matplotlib version |version|.
5371

0 commit comments

Comments
 (0)