diff --git a/.travis.yml b/.travis.yml index 68d9fc15..b602eb8f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: - julia -e 'Pkg.clone("https://github.com/tbreloff/ImageMagick.jl.git"); Pkg.checkout("ImageMagick","tb_write"); Pkg.build("ImageMagick")' - julia -e 'Pkg.clone("https://github.com/tbreloff/VisualRegressionTests.jl.git");' - julia -e 'Pkg.clone("https://github.com/tbreloff/ExamplePlots.jl.git");' - - julia -e 'Pkg.checkout("Blink"); Pkg.build("Blink"); Blink.AtomShell.install()' + - julia -e 'Pkg.checkout("Blink"); Pkg.build("Blink"); import Blink; Blink.AtomShell.install()' - julia -e 'Pkg.checkout("PlotlyJS")' # - julia -e 'Pkg.add("Cairo"); Pkg.build("Cairo")' - julia -e 'ENV["PYTHON"] = ""; Pkg.add("PyPlot"); Pkg.build("PyPlot")' diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index cd7f6e5b..d44c8793 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -404,6 +404,12 @@ function plotly_series(d::KW; plot_index = nothing) ) end + # convert polar plots x/y to r/t + if get(d, :polar, false) + d_out[:r] = pop!(d_out, :x) + d_out[:t] = pop!(d_out, :y) + end + # # for subplots, we need to add the xaxis/yaxis fields # if plot_index != nothing # d_out[:xaxis] = "x$(plot_index)"