dear julia experts—I am running into some issues with plotting simple histograms, as of mid-Feb 2018, julia 0.6.2, macOS.
Yes, I did RTFMs. For example, I added Pkg.add("PyPlot")
. Then I did 'using PyPlot, which led to a good number of installation prompts, culminating in
ERROR: InitError: PyError (ccall(@pysym(:PyImport_ImportModule), PyPtr, (Cstring,), name). This was fixable with
Conda.update()`.
ready. now,
using Distributions; using PyPlot;
nm= rand( Normal(0,1), 10000 );
h = Histogram( nm )
p = PyPlot.plt.hist(nm, 30) ## accdg to web docs
but this tells me that there is no hist field. Nothing like PyPlot.hist(x) or PyPlot.plot( h ) or anything like it worked, either. I tried package StatPlots, package Plots with StatsBase, Plotly, and hosts of other combinations. the best I got was no error, but just empty plots. this must be easy. what is the recommended way to draw histograms now and in julia 1.0?
pointers appreciated. /iaw