I’ve the below code that worked with jupyter lab
, but once tried it with Julia REPL
or PyCharm
with Julia plugin I got the below error:
┌ Warning: No working GUI backend found for matplotlib
└ @ PyPlot C:\Users\hasan.DESKTOP-HU2FQ29\.julia\packages\PyPlot\4wzW1\src\init.jl:165
sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
my code is:
using Pkg
Pkg.add("Plots")
Pkg.add("Measures")
Pkg.add("PyPlot")
using Plots, Measures
pyplot()
data = [rand(100), rand(100)];
h = histogram(data, layout = 2,
title = ["Dataset A" "Dataset B"], legend = false,
ylabel = "ylabel", margin = 5mm)
display(h)
I’m using Pythin3 x64 with Julia Version 1.2.0 (2019-08-20) at Windows 10