[julia-users] Equivalent to the Python's None value for the function's default parameter value

2016-11-04 Thread Alexandr
Hi all, I need to specify function parameter by default value None/Nothing like in Python, so that if it is not initialized during the function call I do it inside the function. I read corresponding section in the FAQ: http://docs.julialang.org/en/release-0.5/manual/faq/#nothingness-and-missing-v

[julia-users] [PyPlot] Saving figure into the file without pop up window

2016-01-13 Thread Alexandr
How can I save the plot into the file without showing the figure? The code like this saves the figure but before it the figure shows up: > using PyPlot > > p=plot(x_vector) > savefig("D:/test.PNG") How can I save the plot directly into the file? Thank you! -- Alexandr

Re: [julia-users] Defining function's argument to be either Int or Float

2016-01-09 Thread Alexandr
te: > On Sat, Jan 9, 2016 at 1:48 PM, Alexandr wrote: >> I am using Version 0.4.0 (2015-10-08 06:20 UTC) >> >> I restarted Julia repl/intrpreter. >> >> Below is a complete code where I am trying to solve my task in a two ways: >> >> 1) by defining a Uni

Re: [julia-users] Defining function's argument to be either Int or Float

2016-01-09 Thread Alexandr
gt; http://julia.readthedocs.org/en/latest/manual/types/#parametric-composite-types > >> >>> >>> -- >>> Alexandr -- Alexandr

[julia-users] Defining function's argument to be either Int or Float

2016-01-09 Thread Alexandr
no method matching f2(::Array{Float64,1}) Why is that? Vector{} and Array{...,1} are equivalent: julia> Array{IntOrFloat,1}==Vector{IntOrFloat} true -- Alexandr

[julia-users] Re: Changing the default location for package installation in Windows

2014-01-09 Thread Alexandr V.M.
n the "JULIA_PKGDIR" is not set and >"Pkg.dir()" uses its default value. > > > > kl. 10:24:45 UTC+1 torsdag 9. januar 2014 skrev Alexandr V.M. følgende: >> >> Hi, >> >> I have a problem while installing packages in windows >

[julia-users] Changing the default location for package installation in Windows

2014-01-09 Thread Alexandr V.M.
Hi, I have a problem while installing packages in windows Pkg.add("DataFrames") The default location for .julia is a network drive where I have no permissions to write. I have read related topic: https://groups.google.com/forum/?fromgroups=#!searchin/julia-users/package$20installation$20window