Skip to content

Pyplot's show() opens a window with my plot, but show_with_alt() doesn't #8

@adamnovak

Description

@adamnovak

I have a command-line Python script that makes a Matplotlib plot and either saves it to a file or displays it, using the interactive window that Pyplot's show() opens up when running outside a notebook but with access to a windowing system.

If I replace my show() call with show_with_alt(), I don't get a GUI window anymore. Instead, I get this:

/private/home/anovak1/.local/lib/python3.10/site-packages/matplotalt/matplotalt.py:180: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
  plt.show()

Does show_with_alt() only contemplate being used within a notebook environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions