Commit 1f21ecc2 authored by Antonino D'Anna's avatar Antonino D'Anna

Updated dec_const to use plot_data and plot_func, added optional return for...

Updated dec_const to use plot_data and plot_func, added optional return for fig and ax objects, updated documentation
parent a8a14206
This diff is collapsed.
......@@ -86,7 +86,7 @@ end
wpm::Union{Dict{String,Vector{Float64}},Nothing} = nothing,
c::String ="green",
alpha::Float64=0.25,
label::String = "",
label::AbstractString = "",
figs::Union{Tuple{Figure, PyPlot.PyCall.PyObject},Nothing}=nothing,
It plots the function `f` evaluated at `xdata`through broadcasting.
The function assumes that `f` return type is `uwreal` and is called as `f(x)`.
......@@ -115,7 +115,7 @@ function plot_func(f::Function, xdata::Vector{T} where T<:Real;
c::String ="green",
alpha::Float64=0.25,
figs::Union{Tuple{Figure, PyPlot.PyCall.PyObject},Nothing}=nothing,
label::String = "",
label::AbstractString = "",
kwargs...)
fig,ax = isnothing(figs) ? subplots(1) : figs
y = f.(xdata);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment