sh0nk / matplotlib4j

Matplotlib for java: A simple graph plot library for java, scala and kotlin with powerful python matplotlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plt.show();

AirJunda opened this issue · comments

I tried to follow the demo but when I type plt.show(), My IDE gives this warning:

Unhandled exceptions: java.io.IOException, com.github.sh0nk.matplotlib4j.PythonExecutionException

As a result, the code failed to compile. Please try to investigate this issue.

@AirJunda
Sorry for replying late. Do you still have the problem?

When you see PythonExecutionException with a very simple case such as the demo, the most suspicious cause is that the python runtime misses matplotlib library or such environmental problem. Could you check your python environment again? If you put the detailed error log with python Traceback, I could help further investigation.

Plot plt = Plot.create(PythonConfig.pythonBinPathConfig("/Users/sh0nk/my_repos/.venv/bin/python"));

Replace with your python.exe path