plotlyjs travis

This commit is contained in:
Thomas Breloff 2016-04-20 11:59:17 -04:00
parent 967291c2ef
commit 2fb10b7076
2 changed files with 7 additions and 1 deletions

View File

@ -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")'

View File

@ -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)"