From e73fe9e140ed7eaf5215cf2706106c0692a7a436 Mon Sep 17 00:00:00 2001 From: Jon Malmaud Date: Fri, 1 Mar 2019 16:36:44 -0500 Subject: [PATCH 1/2] Update for dot-overloading syntax. --- src/Seaborn.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Seaborn.jl b/src/Seaborn.jl index fcca784..f43e409 100644 --- a/src/Seaborn.jl +++ b/src/Seaborn.jl @@ -52,7 +52,7 @@ macro delegate(f_list...) for f in f_list block = quote function $(esc(f))(args...; kwargs...) - seaborn[$(QuoteNode(f))](args...; kwargs...) + seaborn.$(QuoteNode(f))(args...; kwargs...) end end push!(blocks.args, block) @@ -119,7 +119,7 @@ distributions and plot the estimated PDF over the data. distribution. """ function distplot(args...; kwargs...) - seaborn[:distplot](args...; kwargs...) + seaborn.distplot(args...; kwargs...) end """ @@ -140,7 +140,7 @@ Plot datapoints in an array as sticks on an axis. * `ax` : The `Axes` object with the plot on it. """ function rugplot(args...; kwargs...) - seaborn[:rugplot](args...; kwargs...) + seaborn.rugplot(args...; kwargs...) end """ @@ -209,7 +209,7 @@ grouping variables to control the order of plot elements. * `factorplot` : Combine categorical plots and a class:`FacetGrid`. """ function countplot(args...; kwargs...) - seaborn[:countplot](args...; kwargs...) + seaborn.countplot(args...; kwargs...) end """ @@ -313,7 +313,7 @@ grouping variables to control the order of plot elements. * `factorplot` : Combine categorical plots and a class:`FacetGrid`. """ function barplot(args...; kwargs...) - seaborn[:barplot](args...; kwargs...) + seaborn.barplot(args...; kwargs...) end """ @@ -397,7 +397,7 @@ is False or a separate Axes is provided to ``cbar_ax``. Axes object with the heatmap. """ function heatmap(args...; kwargs...) - seaborn[:heatmap](args...; kwargs...) + seaborn.heatmap(args...; kwargs...) end """ @@ -506,11 +506,11 @@ from the objects. Otherwise you may have to use the function parameters tweaking. """ function factorplot(args...; kwargs...) - seaborn[:factorplot](args...; kwargs...) + seaborn.factorplot(args...; kwargs...) end function load_dataset(name) - o = seaborn[:load_dataset](name) + o = seaborn.load_dataset(name) Pandas.DataFrame(o) end From d1be8320cb06f3d98c276682c850fb7f12d2a068 Mon Sep 17 00:00:00 2001 From: Jon Malmaud Date: Fri, 1 Mar 2019 16:37:22 -0500 Subject: [PATCH 2/2] Update REQUIRE version --- REQUIRE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/REQUIRE b/REQUIRE index 43d0607..7c2e8e7 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,5 +1,5 @@ julia 1.0 PyPlot 2.2.4 -PyCall 1.7.2 +PyCall 1.9.0 Reexport 0.0.3 Pandas 0.3.0