@@ -330,12 +330,13 @@ module.exports = {
330330 ] . join ( ' ' )
331331 } ,
332332 // scaleanchor: not used directly, just put here for reference
333- // values are any opposite-letter axis id
333+ // values are any opposite-letter axis id, or `false`.
334334 scaleanchor : {
335335 valType : 'enumerated' ,
336336 values : [
337337 constants . idRegex . x . toString ( ) ,
338- constants . idRegex . y . toString ( )
338+ constants . idRegex . y . toString ( ) ,
339+ false
339340 ] ,
340341 editType : 'plot' ,
341342 description : [
@@ -353,7 +354,12 @@ module.exports = {
353354 'and the last constraint encountered will be ignored to avoid possible' ,
354355 'inconsistent constraints via `scaleratio`.' ,
355356 'Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint' ,
356- 'is currently forbidden.'
357+ 'is currently forbidden.' ,
358+ 'Setting `false` allows to remove a default constraint (occasionally,' ,
359+ 'you may need to prevent a default `scaleanchor` constraint from' ,
360+ 'being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}`' ,
361+ 'is set automatically in order for pixels to be rendered as squares,' ,
362+ 'setting `yaxis: {scaleanchor: false}` allows to remove the constraint).'
357363 ] . join ( ' ' )
358364 } ,
359365 scaleratio : {
0 commit comments