diff --git a/src/args.jl b/src/args.jl index 7fe2334b..69e9f6f7 100644 --- a/src/args.jl +++ b/src/args.jl @@ -281,7 +281,6 @@ 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 734f6a9d..ee9f32b8 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -158,10 +158,9 @@ end # -------------------------------------------------------------------------------------- -function pgf_series(sp::Subplot, series::Series) +function pgf_series(sp::Subplot, series::Series, extra_series_kwargs) plotattributes = series.plotattributes st = plotattributes[:seriestype] - extra_kwargs = plotattributes[:extra_kwargs] series_collection = PGFPlots.Plot[] # function args @@ -540,7 +539,7 @@ function _update_plot_object(plt::Plot{PGFPlotsBackend}) # add the series object to the PGFPlots.Axis for series in series_list(sp) - push!.(Ref(o), pgf_series(sp, series)) + push!.(Ref(o), pgf_series(sp, series, plt[:extra_kwargs][:series])) # add series annotations anns = series[:series_annotations] diff --git a/src/pipeline.jl b/src/pipeline.jl index 3321c0f2..e88e96b8 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) - plotattributes[:extra_kwargs] = warnOnUnsupported_args(plt.backend, plotattributes) + plt[:extra_kwargs][:series] = warnOnUnsupported_args(plt.backend, plotattributes) warnOnUnsupported(plt.backend, plotattributes) series = Series(plotattributes) push!(plt.series_list, series)