@@ -60,9 +60,23 @@ module.exports = overrideAll({
60
60
min : - 2 ,
61
61
max : 3 ,
62
62
description : [
63
- 'Sets the x position of the color bar (in plot fraction).' ,
64
- 'Defaults to 1.02 when `orientation` is *v* and' ,
65
- '0.5 when `orientation` is *h*.'
63
+ 'Sets the x position with respect to `xref` of the color bar (in plot fraction).' ,
64
+ 'When `xref` is *paper*, defaults to 1.02 when `orientation` is *v* and' ,
65
+ '0.5 when `orientation` is *h*.' ,
66
+ 'When `xref` is *container*, defaults to *1* when `orientation` is *v* and' ,
67
+ '0.5 when `orientation` is *h*.' ,
68
+ 'Must be between *0* and *1* if `xref` is *container*.'
69
+ ] . join ( ' ' )
70
+ } ,
71
+ xref : {
72
+ valType : 'enumerated' ,
73
+ dflt : 'paper' ,
74
+ values : [ 'container' , 'paper' ] ,
75
+ editType : 'layoutstyle' ,
76
+ description : [
77
+ 'Sets the container `x` refers to.' ,
78
+ '*container* spans the entire `width` of the plot.' ,
79
+ '*paper* refers to the width of the plotting area only.'
66
80
] . join ( ' ' )
67
81
} ,
68
82
xanchor : {
@@ -87,11 +101,25 @@ module.exports = overrideAll({
87
101
min : - 2 ,
88
102
max : 3 ,
89
103
description : [
90
- 'Sets the y position of the color bar (in plot fraction).' ,
91
- 'Defaults to 0.5 when `orientation` is *v* and' ,
92
- '1.02 when `orientation` is *h*.'
104
+ 'Sets the y position with respect to `yref` of the color bar (in plot fraction).' ,
105
+ 'When `yref` is *paper*, defaults to 0.5 when `orientation` is *v* and' ,
106
+ '1.02 when `orientation` is *h*.' ,
107
+ 'When `yref` is *container*, defaults to 0.5 when `orientation` is *v* and' ,
108
+ '1 when `orientation` is *h*.' ,
109
+ 'Must be between *0* and *1* if `yref` is *container*.'
93
110
] . join ( ' ' )
94
111
} ,
112
+ yref : {
113
+ valType : 'enumerated' ,
114
+ dflt : 'paper' ,
115
+ values : [ 'container' , 'paper' ] ,
116
+ editType : 'layoutstyle' ,
117
+ description : [
118
+ 'Sets the container `y` refers to.' ,
119
+ '*container* spans the entire `height` of the plot.' ,
120
+ '*paper* refers to the height of the plotting area only.'
121
+ ] . join ( ' ' ) ,
122
+ } ,
95
123
yanchor : {
96
124
valType : 'enumerated' ,
97
125
values : [ 'top' , 'middle' , 'bottom' ] ,
0 commit comments