Plotly figures are cropped in sphinx-gallery examples

Open
#4,828 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the cropping in the sphinx-gallery examples and compare the display before and after resizing the window. Investigate the CSS affecting Plotly figures, using the linked sphinx-gallery issue as context. Done means the figures display fully without requiring a window resize.

Written by the indexing model from the issue text.

Description

bug P2

Cross-post from https://github.com/sphinx-gallery/sphinx-gallery/issues/1394, as they asked me to post here.

TL;DR: Plotly figures in sphinx-gallery are cropped, but resizing the window makes them display correctly again. It appears to be a question of "CSS tweaks".

Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
13h 41m
Merged PRs (30d)
21

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plotly/plotly.py

All issues in plotly/plotly.py

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.