Skip to content

Commit

Permalink
Remove MatplotlibDeprecationWarning in Matplotlib Lecture (#289)
Browse files Browse the repository at this point in the history
* remove MatplotlibDeprecationWarning

* update false-positive link
  • Loading branch information
HumphreyYang authored Sep 19, 2023
1 parent 38804c3 commit 996bba4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ sphinx:
# false-positive links
linkcheck_ignore: ['https://github.com/matplotlib/matplotlib/blob/v3.6.2/lib/matplotlib/axes/_axes.py#L1417-L1669',
'https://ieeexplore.ieee.org/document/8757088',
'https://www.sciencedirect.com/science/article/pii/S1477388021000177']
'https://www.sciencedirect.com/science/article/pii/S1477388021000177',
'https://keras.io/']
html_favicon: _static/lectures-favicon.ico
html_theme: quantecon_book_theme
html_static_path: ['_static']
Expand Down
5 changes: 3 additions & 2 deletions lectures/matplotlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ def draw_graphs(style='default'):
# and a line graph with random Y values
axes[3].plot(x, rnormY, linewidth=2, alpha=0.7)
plt.suptitle(f'Style: {style}', fontsize=13)
style_name = style.split('-')[0]
plt.suptitle(f'Style: {style_name}', fontsize=13)
plt.show()
```
Expand All @@ -329,7 +330,7 @@ Let's see what some of the styles look like.
First, we draw graphs with the style sheet `seaborn`

```{code-cell} python3
draw_graphs(style='seaborn')
draw_graphs(style='seaborn-v0_8')
```

We can use `grayscale` to remove colors in plots
Expand Down

0 comments on commit 996bba4

Please sign in to comment.