Merge pull request #697 from lwabeke/add_clims_for_plotly

Attempt to add support for clims to plotly backend
This commit is contained in:
Tom Breloff 2017-02-22 11:02:45 -05:00 committed by GitHub
commit aec08c74e0

View File

@ -31,6 +31,7 @@ const _plotly_attr = merge_with_base_supported([
:hover, :hover,
:inset_subplots, :inset_subplots,
:bar_width, :bar_width,
:clims,
]) ])
const _plotly_seriestype = [ const _plotly_seriestype = [
@ -438,6 +439,11 @@ function plotly_series(plt::Plot, series::Series)
end end
end end
clims = sp[:clims]
if is_2tuple(clims)
d_out[:zmin], d_out[:zmax] = clims
end
# set the "type" # set the "type"
if st in (:path, :scatter, :scattergl) if st in (:path, :scatter, :scattergl)
d_out[:type] = st==:scattergl ? "scattergl" : "scatter" d_out[:type] = st==:scattergl ? "scattergl" : "scatter"