Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 1f4ca91

Browse files
committed
matplotlib-intro change
1 parent 7d777d5 commit 1f4ca91

File tree

3 files changed

+20
-135
lines changed

3 files changed

+20
-135
lines changed

book/_toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ parts:
9191
- file: matplotlib/intro.md
9292
title: Matplotlib
9393
sections:
94-
- file: matplotlib/introduction.ipynb
95-
title: "Introduction"
9694
- file: matplotlib/simple-plot.ipynb
9795
title: "Simple Plot"
9896
- file: matplotlib/customize.ipynb

book/matplotlib/intro.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Matplotlib
22

3-
This chapter is all about ...
3+
Matplotlib is a Python module that allows you to create visualizations. Until now, you have probably used Excel to make graphs, but Python offers much more versatility. In this section, you will learn how to use <b><code>matplotlib</code></b> to make good-looking graphs.
44

5-
% a short overview for this chapter
5+
As always, let's import the module. We will also import numpy and pandas.
6+
7+
8+
```python
9+
import matplotlib.pyplot as plt
10+
import numpy as np
11+
import pandas as pd
12+
```
13+
14+
From the <b><code>matplotlib</code></b> library we will discuss the following functions:
15+
- <b><code>plt.subplot()</code></b>
16+
- <b><code>plt.plot()</code></b>
17+
- <b><code>plt.title()</code></b>
18+
- <b><code>plt.suptitle()</code></b>
19+
- <b><code>plt.xlabel()</code></b> and <b><code>plt.ylabel()</code></b>
20+
- <b><code>plt.xlim()</code></b> and <b><code>plt.ylim()</code></b>
21+
- <b><code>plt.legend()</code></b>
22+
- <b><code>plt.grid()</code></b>
23+
- <b><code>plt.show()</code></b>
624

book/matplotlib/introduction.ipynb

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)