MCPcopy Index your code
hub / github.com/bqplot/bqplot / set_lim

Function set_lim

bqplot/pyplot.py:293–310  ·  view source on GitHub ↗

Set the domain bounds of the scale associated with the provided key. Parameters ---------- name: hashable Any variable that can be used as a key for a dictionary Raises ------ KeyError When no context figure is associated with the provided key.

(min, max, name)

Source from the content-addressed store, hash-verified

291
292
293def set_lim(min, max, name):
294 """Set the domain bounds of the scale associated with the provided key.
295
296 Parameters
297 ----------
298 name: hashable
299 Any variable that can be used as a key for a dictionary
300
301 Raises
302 ------
303 KeyError
304 When no context figure is associated with the provided key.
305
306 """
307 scale = _context['scales'][_get_attribute_dimension(name)]
308 scale.min = min
309 scale.max = max
310 return scale
311
312
313def axes(mark=None, options={}, **kwargs):

Callers 2

xlimFunction · 0.85
ylimFunction · 0.85

Calls 1

_get_attribute_dimensionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…