Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c771265

Browse filesBrowse files
committed
Reorganize intro section on main page
1 parent af49c1b commit c771265
Copy full SHA for c771265

File tree

Expand file treeCollapse file tree

2 files changed

+71
-18
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+71
-18
lines changed

‎doc/_static/mpl.css

Copy file name to clipboardExpand all lines: doc/_static/mpl.css
+36-1Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,4 +1217,39 @@ hr.box-sep {
12171217
div.box-item {
12181218
flex: 0 0 90%;
12191219
}
1220-
}
1220+
}
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

Copy file name to clipboardExpand all lines: doc/index.rst
+35-17Lines changed: 35 additions & 17 deletions
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 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.