Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active June 17, 2016 00:59
Show Gist options
  • Save kjunichi/be1a40470f6c339eb2a1cf78db2c8fc3 to your computer and use it in GitHub Desktop.
Save kjunichi/be1a40470f6c339eb2a1cf78db2c8fc3 to your computer and use it in GitHub Desktop.
2016/4/28

2016/4/28

Julialang

using PyPlot

w = 10 + sqrt(10)*(randn(1,10000));

fig = figure("pyplot_histogram",figsize=(10,10)) # Not strictly required
ax = axes() # Not strictly required
h = plt[:hist](w,30) # Histogram

grid("on")
xlabel("X")
ylabel("Y")
title("Histogram")

Gadflyでないとhistが予約語の為駄目かも

using Gadfly
plot(w,Geom.histogram(bincount=30, density=true))

コーシーの積分公式

関連

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment