项目作者: seanskggo72

项目描述 :
Personal customisation for machine learning
高级语言: Shell
项目地址: git://github.com/seanskggo72/terminal-matplotlib-display.git
创建时间: 2021-01-31T12:05:37Z
项目社区:https://github.com/seanskggo72/terminal-matplotlib-display

开源协议:

下载


Terminal Matplotlib Display

Personal Customisation for Machine Learning

Description

Personal environment setup tool (since WSL2 does not support X11 forwarding).

Directly display png files from matplotlib.pyplot outputs to terminal on WSL using X server (VcXsrv).

Setup

Download VcXsrv.

Create symbolic link to xlaunch.exe in x11/

cd x11/ && ln -s path_to_xlaunch.exe

Usage

Run

source check file.py

Make sure the graph is outputted as .png files in file.py

e.g. matplotlib.pyplot.savefig("image.png")

Result:

1