Skip to content

Feature request: Allow users to specify default style for matplotlib figures #3577

@dstanner

Description

@dstanner

Environment data

  • VS Code version: 1.31.1
  • Extension version (available under the Extensions sidebar): 2019.2.5433
  • OS and version: Windows 10 10.0.17763 Build 17763
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.8 (Anaconda)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda virtual environment
  • Relevant/affected Python packages and their versions: matplotlib

Expected behavior (Desired behavior?)

When I use a dark theme in VS Code, I would like to be able to decide whether matplotlib (and possibly other plotting libraries?) defaults to the 'dark_background' theme or not. Even when I call another theme for plotting, the plot is rendered with the dark background theme.

Looking at the dark background in the editor is fine, but when I call savefig() to save the figure, it still saves with the dark theme, even when specifying a different theme for the plot. It would be nice to not have to piecemeal re-set various parts of the figure to have a white background, and then set the text back to black.

Actual behaviour

Plots are rendered with the dark theme, even when specifying a non-dark pre-packaged style. See screen shot.

capture

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions