Weave.jl/test/documents/pyplot_formats_ref.md

684 B

using PyPlot
x = linspace(0, 2π, 200)
plot(x, sin(x))

sin(x) function.

cos(x) function.

julia> x = linspace(0, 2π, 200)

linspace(0.0,6.283185307179586,200)
julia> plot(x, sin(x))

1-element Array{Any,1}:
 PyObject <matplotlib.lines.Line2D object at 0x7fe56d2dfef0>
julia> y = 20

20
julia> plot(x, cos(x))
1-element Array{Any,1}:
 PyObject <matplotlib.lines.Line2D object at 0x7fe56d2e4fd0>

x = randn(100, 100)
contourf(x)