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)
| 291 | |
| 292 | |
| 293 | def 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 | |
| 313 | def axes(mark=None, options={}, **kwargs): |
no test coverage detected
searching dependent graphs…