Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with new PyCall syntax #9

Merged
merged 2 commits into from
Mar 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -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
16 changes: 8 additions & 8 deletions src/Seaborn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

"""
Expand All @@ -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

"""
Expand Down Expand Up @@ -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

"""
Expand Down Expand Up @@ -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

"""
Expand Down Expand Up @@ -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

"""
Expand Down Expand Up @@ -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

Expand Down