Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Horizontal zooming on faceted scatter plots does not scale y axes correctly #2738

Open
Labels
P3backlog bugsomething broken
Milestone
@mcenno

Description

The code below produces two plots side by side. Zooming in on the x axis only, using a horizontal motion of the mouse, results in the two y axes being independently rescaled. Zooming using a rectangle or on the y axis works as expected. The error does not appear when using fewer than 501 points.

I'm using Python 3.7.4 and Plotly 4.9.0 on Windows 10.

Example:

import plotly.express as px
import numpy as np
import pandas as pd
size=501
df = pd.DataFrame({'x': np.random.random(size=2*size),
 'y': np.hstack((np.random.normal(loc=10, scale=2, size=size), 
 np.random.normal(loc=100, scale=2, size=size))),
 'c': np.hstack((np.zeros(shape=size), np.ones(shape=size)))})
fig = px.scatter(data_frame=df, x='x', y='y', facet_col='c')
fig.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlog bugsomething broken

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /