Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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