MCPcopy Index your code
hub / github.com/plotly/plotly.py / constrain

Method constrain

plotly/graph_objs/layout/_yaxis.py:402–418  ·  view source on GitHub ↗

If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the "range", or by decreasing the "domain". Default is "domain" for axes containing image traces,

(self)

Source from the content-addressed store, hash-verified

400
401 @property
402 def constrain(self):
403 """
404 If this axis needs to be compressed (either due to its own
405 `scaleanchor` and `scaleratio` or those of the other axis),
406 determines how that happens: by increasing the "range", or by
407 decreasing the "domain". Default is "domain" for axes
408 containing image traces, "range" otherwise.
409
410 The 'constrain' property is an enumeration that may be specified as:
411 - One of the following enumeration values:
412 ['range', 'domain']
413
414 Returns
415 -------
416 Any
417 """
418 return self["constrain"]
419
420 @constrain.setter
421 def constrain(self, val):

Callers 15

"src/plots/plots.js"Function · 0.45
AeFunction · 0.45
UFunction · 0.45
gFunction · 0.45
NeFunction · 0.45
KeFunction · 0.45
$Function · 0.45
qtFunction · 0.45
beFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected