-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
[Doc]: Histogram path example renders poorly in HTML #26990
Comments
They seem fairly independent in the sample code. What about reworking this a bit so that the code common to both figures is up top and then each figure+code cell is just what's relevant for that figure? |
I would like to work on this. |
go for it, we don't assign issues but take a look at our contribution guide: https://matplotlib.org/devdocs/devel/index.html |
Created a PR. @story645 |
@story645, I have updated PR with a commit for review suggestions. Any update? |
Issue #26990: Split the histogram image into two for each code block.
Documentation Link
https://matplotlib.org/stable/gallery/misc/histogram_path.html#sphx-glr-gallery-misc-histogram-path-py
Problem
This plot renders poorly in the gallery web page as it is a single figure that is modified over two cells, but is displayed only after the first cell
All modifications from the second cell are not shown and an empty plot is displayed for the second subplot.
Suggested improvement
The two subplots could be made into different figures so each one gets rendered under their own cell.
Or if there is a way to tell sphinx-gallery to show the same figure twice (not sure if this exists).
Or the code blocks could be combined into one so there is only one figure rendered.
The text was updated successfully, but these errors were encountered: