plotly / plotly/plotly.py

range is only working on the x Axis

Open
#3,542 0 comments 0 reactions 0 assignees View on GitHub

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()

newplot (51)

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.