@@ -60,9 +60,23 @@ module.exports = overrideAll({
6060 min : - 2 ,
6161 max : 3 ,
6262 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.'
6680 ] . join ( ' ' )
6781 } ,
6882 xanchor : {
@@ -87,11 +101,25 @@ module.exports = overrideAll({
87101 min : - 2 ,
88102 max : 3 ,
89103 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*.'
93110 ] . join ( ' ' )
94111 } ,
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+ } ,
95123 yanchor : {
96124 valType : 'enumerated' ,
97125 values : [ 'top' , 'middle' , 'bottom' ] ,
0 commit comments