Read here: https://github.com/stevengj/PyCall.jl#usage
More specifically, this section:
"The biggest diffence from Python is that object attributes/members are
accessed with o[:attribute]rather than o.attribute, and you use get(o, key)
rather
than o[key]. (This is because Julia does not
Change last line to:
h = PyPlot.plt[:hist](x,nbins)
On Monday, October 26, 2015 at 11:28:35 AM UTC+1, Ferran Mazzanti wrote:
>
> Hi folks,
>
> using Linux Mint 17.1 here. I upgraded to julia 0.4.0 and now this simple
> code, taken from the web and tested on previous versions,
>
> using PyPlot
That worked, thanks :)
But this syntax I can not understand... where can I find documentation
about how to do that? Just to avoid asking agains cuh kind of questions...
Thanks again.
On Monday, October 26, 2015 at 11:31:59 AM UTC+1, Kristoffer Carlsson wrote:
>
> Change last line to:
>
> h =
Apologies, this seems to have changed recently -- PyPlot no longer
overwrites Base.hist.
You can do
plt[:hist]
If you do `using PyPlot` then you can just use `hist` directly:
using PyPlot
x = randn(1)
hist(x, 100)
El lunes, 26 de octubre de 2015, 10:21:59 (UTC-6), Ferran Mazzanti escribió:
>
> Oh, thnks for the info...
>
> On Monday, October 26, 2015 at 12:25:26 PM UTC+1, Kristoffer Carlsson
>
(You then must call Base.hist if you want the version from Base.)
El lunes, 26 de octubre de 2015, 23:13:23 (UTC-6), David P. Sanders
escribió:
>
>
> If you do `using PyPlot` then you can just use `hist` directly:
>
> using PyPlot
>
> x = randn(1)
> hist(x, 100)
>
> El lunes, 26 de octubre
Oh, thnks for the info...
On Monday, October 26, 2015 at 12:25:26 PM UTC+1, Kristoffer Carlsson wrote:
>
> Read here: https://github.com/stevengj/PyCall.jl#usage
>
> More specifically, this section:
>
> "The biggest diffence from Python is that object attributes/members are
> accessed with