forked from Darriall/numpy-cheat-sheet
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d08f3c
commit 90c7feb
Showing
4 changed files
with
35 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# THIS GUIDE IS IN ITS VERY EARLY STAGES AND STILL IN DEVELOPMENT. not much thats helpful here right now | ||
|
||
# Matplotlib | ||
|
||
## Index | ||
Classic example: gdp per capita and life expectancy | ||
```python | ||
# gdp_cap on the x-axis, life_exp on the y-axis | ||
plt.plot(gdp_cap, life_exp) | ||
|
||
# Display the plot | ||
plt.show() | ||
``` | ||
result: | ||
|
||
### Customization | ||
label | ||
xticks | ||
title | ||
|
||
.text | ||
.grid (True/False) | ||
|
||
*common arguments for matplotlib diagrams* | ||
size | ||
color | ||
alpha (opacity) |
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
This file was deleted.
Oops, something went wrong.