range is only working on the x Axis
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
When using facets and setting binary_string to False it's not possible to select a range on the y-axis. It works on the x-axis and also when binary_string is set False.
import plotly.express as px
import numpy as np
from skimage import data, filters, img_as_float
img = data.camera()
sigmas = [1, 2, 4]
img_sequence = [filters.gaussian(img, sigma=sigma) for sigma in sigmas]
fig = px.imshow(np.array(img_sequence), facet_col=0, binary_string=False,
labels={'facet_col':'sigma'})
# Set facet titles
for i, sigma in enumerate(sigmas):
fig.layout.annotations[i]['text'] = 'sigma = %d' %sigma
fig.update_layout(
xaxis=dict(
range = [200, 300]
),
yaxis=dict(
range = [200, 300]
),
)
fig.show()

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided px.imshow reproduction, focusing on faceted images with binary_string=False and the xaxis/yaxis range settings. Verify the behavior in a focused test or reproduction, and consider the issue done when y-axis range selection matches x-axis behavior under these conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100