From dd6842522f8d353dcd3825c0b1fb82b1b0258277 Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Wed, 28 Mar 2018 09:50:10 -0700 Subject: [PATCH] avoid import --- src/Plots.jl | 1 - src/backends/unicodeplots.jl | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Plots.jl b/src/Plots.jl index d4f4c50f..222270cb 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -15,7 +15,6 @@ using Base.Meta import Showoff import StatsBase import JSON -import Base.Iterators: filter using Requires diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index 99482750..8be28b7f 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -162,7 +162,7 @@ function addUnicodeSeries!(o, d::KW, addlegend::Bool, xlim, ylim) color = d[:linecolor] in UnicodePlots.color_cycle ? d[:linecolor] : :auto # add the series - x, y = Plots.unzip(collect(filter(xy->isfinite(xy[1])&&isfinite(xy[2]), zip(x,y)))) + x, y = Plots.unzip(collect(Base.Iterators.filter(xy->isfinite(xy[1])&&isfinite(xy[2]), zip(x,y)))) func(o, x, y; color = color, name = label) end