From f7babcc1d242378009a43ae07e5f9f5e606bd363 Mon Sep 17 00:00:00 2001 From: Christof Stocker Date: Fri, 29 Jan 2016 02:06:22 +0100 Subject: [PATCH] fix unicodeplots compat --- src/backends/unicodeplots.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index a85b4ff5..23c0d591 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -91,13 +91,13 @@ function addUnicodeSeries!(o, d::Dict, addlegend::Bool, xlim, ylim) else error("Linestyle $lt not supported by UnicodePlots") end - + # get the series data and label x, y = [collect(float(d[s])) for s in (:x, :y)] label = addlegend ? d[:label] : "" # if we happen to pass in allowed color symbols, great... otherwise let UnicodePlots decide - color = d[:linecolor] in UnicodePlots.autoColors ? d[:linecolor] : :auto + color = d[:linecolor] in UnicodePlots.color_cycle ? d[:linecolor] : :auto # add the series func(o, x, y; color = color, name = label, style = stepstyle)