In [3]:
using PyPlot
x = linspace(0,2*pi,1000); y = sin.(3*x + 4*cos.(2*x));
plot(x, y, color="red", linewidth=2.0, linestyle="--")
title("A sinusoidally modulated sinusoid")
Out[3]:
PyObject <matplotlib.text.Text object at 0x7f1098323cd0>
In [3]:
workspace()
In [4]:
using PyCall
@pyimport matplotlib.pyplot as plt
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x));
plt.plot(x, y, color="red", linewidth=2.0, linestyle="--")
plt.title("A sinusoidally modulated sinusoid")
plt.show()
WARNING: Method definition rtoldefault(Any, Any, Real) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:653 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:653.
WARNING: Method definition reshape(AbstractArray{T, N} where N where T, Main.Base.Val{N}) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:523 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:523.
WARNING: Method definition done(Main.Base.Cmd, Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:499 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:499.
WARNING: Method definition ntuple(F, Main.Base.Val{N}) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:525 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:525.
WARNING: Method definition endof(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition include_string(Module, String, String) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:464 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:464.
WARNING: Method definition include_string(Module, AbstractString) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:466 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:466.
WARNING: Method definition include_string(Module, AbstractString, AbstractString) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:466 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:466.
WARNING: Method definition last(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition getindex(Main.Base.Cmd, Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:499 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:499.
WARNING: Method definition logdet(Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:531 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:531.
WARNING: Method definition chol!(Main.Base.LinAlg.UniformScaling{T} where T<:Number, Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:537 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:537.
WARNING: Method definition chol(Main.Base.LinAlg.UniformScaling{T} where T<:Number, Any...) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:538 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:538.
WARNING: Method definition expand(Module, ANY) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:462 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:462.
WARNING: Method definition length(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition start(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition eltype(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition next(Main.Base.Cmd, Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:499 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:499.
WARNING: Method definition macroexpand(Module, ANY) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:463 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:463.
WARNING: Method definition #cov(Array{Any, 1}, typeof(Main.Base.cov), AbstractArray{T, 1} where T) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:603 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:603.
WARNING: Method definition #cov(Array{Any, 1}, typeof(Main.Base.cov), AbstractArray{T, 1} where T, AbstractArray{T, 1} where T) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:604 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:604.
WARNING: Method definition #cov(Array{Any, 1}, typeof(Main.Base.cov), AbstractArray{T, 2} where T, Int64) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:607 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:607.
WARNING: Method definition #cov(Array{Any, 1}, typeof(Main.Base.cov), Union{AbstractArray{T, 1}, AbstractArray{T, 2}} where T, Union{AbstractArray{T, 1}, AbstractArray{T, 2}} where T, Int64) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:609 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:609.
WARNING: Method definition read(Main.Base.Cmd, Type{String}) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:566 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:566.
WARNING: Method definition read(AbstractString, Type{String}) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:565 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:565.
WARNING: Method definition read(IO, Type{String}) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:564 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:564.
WARNING: Method definition first(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition eachindex(Main.Base.Cmd) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:496.
WARNING: Method definition (::Type{DomainError})(Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:576 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:576.
WARNING: Method definition (::Type{DomainError})(Any, Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:577 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:577.
WARNING: Method definition (::Type{OverflowError})(Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:582 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:582.
WARNING: Method definition (::Type{InexactError})(Symbol, Any, Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:571 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:571.
WARNING: Method definition (::Type{Main.Base.Val{T} where T})(Any) in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:520 overwritten in module Compat at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:520.
WARNING: Method definition run(Function) in module BinDeps at /home/nrw/.julia/v0.6/BinDeps/src/BinDeps.jl:476 overwritten in module BinDeps at /home/nrw/.julia/v0.6/BinDeps/src/BinDeps.jl:476.
WARNING: cos{T <: Number}(x::AbstractArray{T}) is deprecated, use cos.(x) instead.
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
[2] cos(::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}) at ./deprecated.jl:57
[3] include_string(::String, ::String) at ./loading.jl:515
[4] include_string(::Module, ::String, ::String) at /home/nrw/.julia/v0.6/Compat/src/Compat.jl:464
[5] execute_request(::LastMain.ZMQ
.Socket, ::LastMain.IJulia.Msg) at /home/nrw/.julia/v0.6/IJulia/src/execute_request.jl:154
[6] eventloop(::LastMain.ZMQ.Socket) at /home/nrw/.julia/v0.6/IJulia/src/eventloop.jl:8
[7] (::LastMain.IJulia.##14#17)() at ./task.jl:335
while loading In[4], in expression starting on line 3
In [ ]:
Content source: nouyang/janson299r
Similar notebooks: