Skip to content

plt.ioff() not suppressing figure generation #14950

Closed
@Yoshi2112

Description

@Yoshi2112

Bug report

Bug summary
Usual behaviour for supressing plots (by enabling plt.ioff()) no longer working since update to latest version of conda.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

x = np.random.rand(10)
y = np.random.rand(10)

plt.ioff()
plt.plot(x, y)

Actual outcome
In Spyder IDE, still generates figure window.

Expected outcome
Figure window should not appear. plt.ioff() should disable interactive mode, and require a plt.show() call to generate figure window.

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 3.1.0
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 3.7.3
  • Jupyter version (if applicable):
  • Other libraries: numpy 1.16.4

conda

Default channel (via https://www.anaconda.com/distribution/ )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions