File tree 1 file changed +1
-12
lines changed
plotly/plotlyfig_aux/core
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 27
27
obj .State .Plot(traceIndex ).AssociatedAxis);
28
28
[xSource , ySource ] = findSourceAxis(obj , axIndex );
29
29
xAxis = obj .layout.(" xaxis" + xSource );
30
- yAxis = obj .layout.(" yaxis" + xSource );
30
+ yAxis = obj .layout.(" yaxis" + ySource );
31
31
32
32
allDomain(traceIndex , 1 ) = max(xAxis .domain );
33
33
allDomain(traceIndex , 2 ) = max(yAxis .domain );
55
55
% only displays last legend as global Plotly legend
56
56
obj.layout.legend = struct();
57
57
58
- % ---------------------------------------------------------------------%
59
-
60
- % -layout showlegend-%
61
58
obj.layout.showlegend = strcmpi(legendData .Visible ,' on' );
62
-
63
- % ---------------------------------------------------------------------%
64
-
65
- % -legend (x,y) coordenates-%
66
59
obj.layout.legend.x = 1.005 * max(allDomain(: ,1 ));
67
60
obj.layout.legend.y = 1.001 * max(allDomain(: ,2 ));
68
-
69
- % -legend (x,y) refs-%
70
61
obj.layout.legend.xref = ' paper' ;
71
62
obj.layout.legend.yref = ' paper' ;
72
-
73
- % -legend (x,y) anchors-%
74
63
obj.layout.legend.xanchor = ' left' ;
75
64
obj.layout.legend.yanchor = ' top' ;
76
65
You can’t perform that action at this time.
0 commit comments