From 6744917e694b3a9882d2f75a864614b0523ed434 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 27 Sep 2019 19:07:27 +0200 Subject: [PATCH] make extra_kwargs a series kw. --- src/args.jl | 1 + src/backends/pgfplots.jl | 1 + src/pipeline.jl | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/args.jl b/src/args.jl index 69e9f6f7..7fe2334b 100644 --- a/src/args.jl +++ b/src/args.jl @@ -281,6 +281,7 @@ const _series_defaults = KW( # one logical series to be broken up (path and markers, for example) :hover => nothing, # text to display when hovering over the data points :stride => (1,1), # array stride for wireframe/surface, the first element is the row stride and the second is the column stride. + :extra_kwargs => KW(), ) diff --git a/src/backends/pgfplots.jl b/src/backends/pgfplots.jl index 1cd02652..734f6a9d 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -161,6 +161,7 @@ end function pgf_series(sp::Subplot, series::Series) plotattributes = series.plotattributes st = plotattributes[:seriestype] + extra_kwargs = plotattributes[:extra_kwargs] series_collection = PGFPlots.Plot[] # function args diff --git a/src/pipeline.jl b/src/pipeline.jl index a99561ee..3321c0f2 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -341,7 +341,7 @@ function _expand_subplot_extrema(sp::Subplot, plotattributes::AKW, st::Symbol) end function _add_the_series(plt, sp, plotattributes) - plt.attr[:extra_kwargs] = warnOnUnsupported_args(plt.backend, plotattributes) + plotattributes[:extra_kwargs] = warnOnUnsupported_args(plt.backend, plotattributes) warnOnUnsupported(plt.backend, plotattributes) series = Series(plotattributes) push!(plt.series_list, series)