removed release from travis; push for series; update for subplot
This commit is contained in:
parent
705dbf60fa
commit
461d5efc4b
@ -4,11 +4,11 @@ os:
|
||||
- linux
|
||||
- osx
|
||||
julia:
|
||||
- release
|
||||
# - release
|
||||
- nightly
|
||||
matrix:
|
||||
allow_failures:
|
||||
- julia: nightly
|
||||
# matrix:
|
||||
# allow_failures:
|
||||
# - julia: nightly
|
||||
|
||||
# # before install:
|
||||
# # - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
||||
|
||||
@ -34,6 +34,7 @@ export
|
||||
|
||||
plot,
|
||||
plot!,
|
||||
update!,
|
||||
|
||||
current,
|
||||
default,
|
||||
|
||||
22
src/utils.jl
22
src/utils.jl
@ -686,9 +686,17 @@ function push_z!(series::Series, zi)
|
||||
return
|
||||
end
|
||||
|
||||
function Base.push!(series::Series, yi)
|
||||
x = extendSeriesByOne(series[:x])
|
||||
expand_extrema!(series[:subplot][:xaxis], x[end])
|
||||
series[:x] = x
|
||||
push_y!(series, yi)
|
||||
end
|
||||
Base.push!(series::Series, xi, yi) = (push_x!(series,xi); push_y!(series,yi))
|
||||
Base.push!(series::Series, xi, yi, zi) = (push_x!(series,xi); push_y!(series,yi); push_z!(series,zi))
|
||||
|
||||
# -------------------------------------------------------
|
||||
|
||||
function update!(series::Series; kw...)
|
||||
d = KW(kw)
|
||||
preprocessArgs!(d)
|
||||
@ -700,6 +708,20 @@ function update!(series::Series; kw...)
|
||||
end
|
||||
end
|
||||
_series_updated(series[:subplot].plt, series)
|
||||
series
|
||||
end
|
||||
|
||||
function update!(sp::Subplot; kw...)
|
||||
d = KW(kw)
|
||||
preprocessArgs!(d)
|
||||
for (k,v) in d
|
||||
if haskey(_subplot_defaults, k)
|
||||
sp[k] = v
|
||||
else
|
||||
warn("unused key $k in subplot update")
|
||||
end
|
||||
end
|
||||
sp
|
||||
end
|
||||
|
||||
# -------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user