Skip to content

[Bug]: Zoom rubber band lags in larger window #23968

Closed
@inxp

Description

@inxp

Bug summary

Zoom rubber band is smooth in small window. But when I increase the size of the window the performance degrades.

Here I have stretched the window across two monitors for illustration.

Code for reproduction

import matplotlib.pyplot as plt
import numpy as np

# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)

fig, ax = plt.subplots()
ax.plot(t, s)

ax.set(xlabel='time (s)', ylabel='voltage (mV)',
       title='About as simple as it gets, folks')
ax.grid()

fig.savefig("test.png")
plt.show()

Actual outcome

2022-09-20_17-23-16

Expected outcome

2022-09-20_17-21-24

Additional information

No response

Operating system

Windows

Matplotlib Version

3.6

Matplotlib Backend

QtAgg

Python version

3.8.10

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions