fix single subplot in plotly
This commit is contained in:
parent
f6bc7721a8
commit
083721bbc1
@ -328,9 +328,11 @@ function plotly_layout(plt::Plot)
|
|||||||
|
|
||||||
d_out[:annotations] = KW[]
|
d_out[:annotations] = KW[]
|
||||||
|
|
||||||
|
multiple_subplots = length(plt.subplots) > 1
|
||||||
|
|
||||||
for sp in plt.subplots
|
for sp in plt.subplots
|
||||||
spidx = sp[:subplot_index]
|
spidx = multiple_subplots ? sp[:subplot_index] : ""
|
||||||
x_idx, y_idx = plotly_link_indicies(plt, sp)
|
x_idx, y_idx = multiple_subplots ? plotly_link_indicies(plt, sp) : ("", "")
|
||||||
# add an annotation for the title... positioned horizontally relative to plotarea,
|
# add an annotation for the title... positioned horizontally relative to plotarea,
|
||||||
# but vertically just below the top of the subplot bounding box
|
# but vertically just below the top of the subplot bounding box
|
||||||
if sp[:title] != ""
|
if sp[:title] != ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user