Skip to content
Closed
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
6 changes: 6 additions & 0 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,12 @@ p.caption {
font-weight: bold;
}

.sphx-glr-single-img{
width: 50%;
height: 50%;
max-width: 99%;
}

.sphx-glr-multi-img{
max-width: 99% !important;
}
Expand Down
10 changes: 10 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ def _check_dependencies():
}


def reset_hi_dpi(gallery_conf, fname):
import matplotlib
matplotlib.pyplot.rcdefaults()
matplotlib.rcParams['figure.dpi'] = 200
matplotlib.rcParams['savefig.dpi'] = 200



# Sphinx gallery configuration
sphinx_gallery_conf = {
'examples_dirs': ['../examples', '../tutorials'],
Expand All @@ -168,8 +176,10 @@ def _check_dependencies():
'thumbnail_size': (320, 224),
'compress_images': ('thumbnails', 'images'),
'matplotlib_animations': True,
'reset_modules': (reset_hi_dpi),
}


plot_gallery = 'True'

# Monkey-patching gallery signature to include search keywords
Expand Down