| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Of course, the effect of the example of the figure being too small is a bit stymied by GitHub resizing the figure to be as large as its description box. |
Sorry, something went wrong.
|
It looks like the examples/shapes_and_collections/fancybox_demo.py change will conflict with #20538, but that's shaping it into a much better example, so I'll probably just revert this here. |
Sorry, something went wrong.
I've reverted this part of the change, as that PR is much better. |
Sorry, something went wrong.
| fig = plt.figure(figsize=(12, 6)) | ||
| sfs = fig.subfigures(1, 2) | ||
| fig = plt.figure(figsize=(6, 12)) | ||
| sfs = fig.subfigures(2, 1) |
There was a problem hiding this comment.
The Size.Fixed is maybe too small now in this example?
Sorry, something went wrong.
There was a problem hiding this comment.
... also perhaps useful to make the figure have a facecolor here to make it clear how large the figure is?
Sorry, something went wrong.
There was a problem hiding this comment.
I'm not sure how instructive this example is at all. There's very little explanation.
We're moving things around here:
I propose to revert to the original separate figures (or any other way to make this more compact and understandable).
Sorry, something went wrong.
There was a problem hiding this comment.
These all look better except perhaps for my comment...
Sorry, something went wrong.
| fig = plt.figure(figsize=(12, 6)) | ||
| sfs = fig.subfigures(1, 2) | ||
| fig = plt.figure(figsize=(6, 12)) | ||
| sfs = fig.subfigures(2, 1) |
There was a problem hiding this comment.
I'm not sure how instructive this example is at all. There's very little explanation.
We're moving things around here:
I propose to revert to the original separate figures (or any other way to make this more compact and understandable).
Sorry, something went wrong.
|
|
||
|
|
||
| fig, axs = plt.subplots(3, 5, figsize=(8, 4.8)) | ||
| fig, axs = plt.subplots(3, 5, figsize=(7, 4), constrained_layout=True) |
There was a problem hiding this comment.
With the reduced size, the text becomes very dominating and visually too close to the arrows:


This needs more fine-tuning, i.e. moving points and/or changing font size and/or maxing out the available figure size.
I propose to hold off such difficult fine-tuning until we know what size will finally be available (xref pydata/pydata-sphinx-theme#427, pydata/pydata-sphinx-theme#428).
Sorry, something went wrong.
There was a problem hiding this comment.
I agree with @timhoffm on both accounts.
Sorry, something went wrong.
Sorry, something went wrong.
|
@QuLogic worst case scenario you could just revert that one example, and we could merge the rest of this? |
Sorry, something went wrong.
It is strange to have them all at the end "in" the Miscellaneous section. And when sphinx-gallery sees multiple figures together, it makes those into a "list" at half size, which makes them much too small in the new theme.
Center the EEG image in sample plots tutorial, which matches the rest of the images in the tutorial. Drop captions that don't say much, and make images full size.
Place example images before API description, and don't scale down to 50%.
Don't scale to 50%, plus some small tweaks to demos so the images fit better.
Select text colour based on luminance of the background, rather than straight 50% black, which is invisible on some lines. Then tweak the alignments settings to look nicer.
|
I'll merge as an improvement. @timhoffm not 100% sure all your comments were addressed, but hopefully they can just be follow up. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Figures were originally 50% scale, but this looks tiny in the new theme. Mostly this undoes that, plus some tweaks in examples so that they don't end up too wide at 100%. For example, there's no need for this to be so small:
As done in other PRs, this also drops captions which seem pretty uninformative.
Finally, it makes some tweaks to some of the colour figures, by
(preventing sphinx-gallery from treating them as a list and half-sizing them, like this)  b) and improving the xkcd vs CSS colour comparison chart by changing the text colour to contrast the background, plus some tweaks to make better alignment: Detailsa) moving colormaps to their respective tutorial sections
PR Checklist