diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index a417d3fb..bb7af4d7 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -194,84 +194,6 @@ function get_plot_json(plt::Plot{PlotlyPackage}) d_out[:xaxis] = plotlyaxis(d, true) d_out[:yaxis] = plotlyaxis(d, false) - # # x-axis - # d_out[:xaxis] = Dict( - # :title => d[:xlabel], - # :showgrid => d[:grid], - # :zeroline => false, - # ) - # merge!(d_out[:xaxis], if use_axis_field(d[:xticks]) - # ax = Dict( - # :titlefont => plotlyfont(d[:guidefont]), - # :type => plotlyscale(d[:xscale]), - # :tickfont => plotlyfont(d[:tickfont]), - # :tickcolor => fgcolor, - # :linecolor => fgcolor, - # ) - - # # xlims - # lims = d[:xlims] - # if lims != :auto && limsType(lims) == :limits - # ax[:range] = lims - # end - - # # xflip - # if d[:xflip] - # ax[:autorange] = "reversed" - # end - - # # xticks - # ticks = d[:xticks] - # if ticks != :auto - # ttype = ticksType(ticks) - # if ttype == :ticks - # ax[:tickmode] = "array" - # ax[:tickvals] = ticks - # elseif ttype == :ticks_and_labels - # ax[:tickmode] = "array" - # ax[:tickvals], ax[:ticktext] = ticks - # end - # end - - # ax - # else - # Dict( - # :showticklabels => false, - # :showgrid => false, - # ) - # end) - - - # # y-axis - # d_out[:yaxis] = Dict( - # :title => d[:ylabel], - # :showgrid => d[:grid], - # :zeroline => false, - # ) - # merge!(d_out[:yaxis], if use_axis_field(d[:yticks]) - # Dict( - # :titlefont => plotlyfont(d[:guidefont]), - # :type => plotlyscale(d[:yscale]), - # :tickfont => plotlyfont(d[:tickfont]), - # :tickcolor => fgcolor, - # :linecolor => fgcolor, - # ) - # else - # Dict( - # :showticklabels => false, - # :showgrid => false, - # ) - # end) - - # lims = d[:ylims] - # if lims != :auto && limsType(lims) == :limits - # d_out[:yaxis][:range] = lims - # end - - # if d[:yflip] - # d_out[:yaxis][:autorange] = "reversed" - # end - # legend d_out[:showlegend] = d[:legend] if d[:legend]