From 7d58090e598d531c7daa3ed56ac6a0e0cd0de081 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 16 Mar 2018 09:36:24 +0100 Subject: [PATCH] use bar recipe in plotly --- src/backends/plotly.jl | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index a108e014..718f7add 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -49,7 +49,7 @@ const _plotly_attr = merge_with_base_supported([ ]) const _plotly_seriestype = [ - :path, :scatter, :bar, :pie, :heatmap, + :path, :scatter, :pie, :heatmap, :contour, :surface, :wireframe, :path3d, :scatter3d, :shape, :scattergl, ] const _plotly_style = [:auto, :solid, :dash, :dot, :dashdot] @@ -544,17 +544,6 @@ function plotly_series(plt::Plot, series::Series) end d_out[:x], d_out[:y] = x, y - elseif st == :bar - d_out[:type] = "bar" - d_out[:x], d_out[:y], d_out[:orientation] = if isvertical(series) - x, y, "v" - else - y, x, "h" - end - d_out[:width] = series[:bar_width] - d_out[:marker] = KW(:color => _cycle(rgba_string.(series[:fillcolor]),eachindex(series[:x])), - :line => KW(:width => series[:linewidth])) - elseif st == :heatmap d_out[:type] = "heatmap" d_out[:x], d_out[:y], d_out[:z] = x, y, z