Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Figures in windows not tabs #13164

Description

@hutattedonmyarm

I want to create multiple figure with Matplotlib in python, using the macosx backend. Currently, my code looks something like this:

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2, 100)

f1 = plt.figure(1)
plt.plot(x,x**2)

f2 = plt.figure(2)
plt.plot(x,x**2)
plt.show()

This creates a single window, with two tabs. One for figure 1, and one for figure 2. I suggest an option to open them in separate windows.

Note that the tabs likely come from the automatic tab-support built into the OS since macOS 10.12
Matplotlib version

  • Operating system: macOS 10.14.3
  • Matplotlib version: 3.0.2
  • Matplotlib backend (print(matplotlib.get_backend())): MacOSX
  • Python version: 3.7.1
  • Jupyter version (if applicable): -
  • Other libraries: -
  • Installed via: pip
  • Python installation via pyenv

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions