Skip to content

Python matplotlib display with WSL and VcXsrv #37

@callumhauber

Description

@callumhauber

I did a few different things, but here are the steps I think are required to make it work:

  1. Make sure VcXsrv is installed and working
  2. Install Tk backend with sudo apt install python3-tk
  3. Add these lines to the python program

import matplotlib
matplotlib.use("TkAgg")

  1. Possibly also install these (might only be specific to lab 6 stuff):
    sudo apt-get install python3-pil python3-pil.imagetk

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