Skip to content

Commit 996bba4

Browse files
authored
Remove MatplotlibDeprecationWarning in Matplotlib Lecture (#289)
* remove MatplotlibDeprecationWarning * update false-positive link
1 parent 38804c3 commit 996bba4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lectures/_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ sphinx:
2020
# false-positive links
2121
linkcheck_ignore: ['https://github.com/matplotlib/matplotlib/blob/v3.6.2/lib/matplotlib/axes/_axes.py#L1417-L1669',
2222
'https://ieeexplore.ieee.org/document/8757088',
23-
'https://www.sciencedirect.com/science/article/pii/S1477388021000177']
23+
'https://www.sciencedirect.com/science/article/pii/S1477388021000177',
24+
'https://keras.io/']
2425
html_favicon: _static/lectures-favicon.ico
2526
html_theme: quantecon_book_theme
2627
html_static_path: ['_static']

lectures/matplotlib.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ def draw_graphs(style='default'):
319319
# and a line graph with random Y values
320320
axes[3].plot(x, rnormY, linewidth=2, alpha=0.7)
321321
322-
plt.suptitle(f'Style: {style}', fontsize=13)
322+
style_name = style.split('-')[0]
323+
plt.suptitle(f'Style: {style_name}', fontsize=13)
323324
plt.show()
324325
325326
```
@@ -329,7 +330,7 @@ Let's see what some of the styles look like.
329330
First, we draw graphs with the style sheet `seaborn`
330331

331332
```{code-cell} python3
332-
draw_graphs(style='seaborn')
333+
draw_graphs(style='seaborn-v0_8')
333334
```
334335

335336
We can use `grayscale` to remove colors in plots

0 commit comments

Comments
 (0)