-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Display example figures in a single column #21837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This overrides sphinx-gallery's CSS to make multiple images appear individually, which AFAICT looks better for all of our examples. It affects the following: - examples/axes_grid1/demo_axes_rgb.py - examples/color/colormap_reference.py - examples/color/named_colors.py - examples/event_handling/pick_event_demo.py - examples/event_handling/zoom_window.py - examples/images_contours_and_fields/barb_demo.py - examples/images_contours_and_fields/contourf_demo.py - examples/images_contours_and_fields/image_demo.py - examples/images_contours_and_fields/shading_example.py - examples/lines_bars_and_markers/fill_betweenx_demo.py - examples/specialty_plots/advanced_hillshading.py - examples/statistics/boxplot_demo.py - examples/style_sheets/style_sheets_reference.py - examples/text_labels_and_annotations/accented_text.py - examples/text_labels_and_annotations/annotation_demo.py - examples/ticks/tick-formatters.py - examples/userdemo/demo_gridspec03.py - tutorials/colors/colormaps.py - tutorials/colors/colors.py
Turning of multi-column display of figures in docs shows some examples that really should have been split apart. Most already have text that could go in the space between the figures, too.
For some reason the Artifact isn't found... |
Ah sorry, that's because I enabled Circle on my fork to test out the backport checks. Here's the direct link: https://80-21548241-gh.circle-artifacts.com/0/doc/build/html/index.html |
Can we backport this to 3.5-doc or does that not work because there are changes in the examples? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too sure what branch this should go on, so will hold off merging. @QuLogic feel free to choose a branch and self merge
Only stuff that changes installed files shouldn't be backported, so this is fine. |
…837-on-v3.5.x Backport PR #21837 on branch v3.5.x (Display example figures in a single column)
…837-on-v3.5.0-doc Backport PR #21837 on branch v3.5.0-doc (Display example figures in a single column)
PR Summary
This overrides the sphinx-gallery CSS when multiple figures are output, so that they appear as a single column (except if they are already narrow enough to fit together.) In a few cases, it is possible to split up examples so that figures are not stuck together anyway, so do that where possible.
This generally looks better to me, even if a few figures get bunched up.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).