forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request matplotlib#21313 from timhoffm/getting-started
DOC: Minimal getting started page
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Getting started | ||
=============== | ||
|
||
Installation | ||
------------ | ||
|
||
.. container:: twocol | ||
|
||
.. container:: | ||
|
||
Install using pip: | ||
|
||
.. code-block:: bash | ||
pip install matplotlib | ||
.. container:: | ||
|
||
Install using conda: | ||
|
||
.. code-block:: bash | ||
conda install matplotlib | ||
Further details are available in the :doc:`Installation Guide </users/installing>`. | ||
|
||
|
||
Draw a first plot | ||
----------------- | ||
|
||
Here is a minimal example plot you can try out: | ||
|
||
.. plot:: | ||
:include-source: | ||
:align: center | ||
|
||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
x = np.linspace(0, 2 * np.pi, 200) | ||
y = np.sin(x) | ||
|
||
fig, ax = plt.subplots() | ||
ax.plot(x, y) | ||
plt.show() | ||
|
||
|
||
Where to go next | ||
---------------- | ||
|
||
- Check out :doc:`Plot types </plot_types/index>` to get an overview of the | ||
types of plots you can create with Matplotlib. | ||
- Learn Matplotlib from the ground up in the | ||
:doc:`Quick-start guide </tutorials/introductory/usage>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters