MCPcopy Create free account
hub / github.com/spotify/chartify / set_yaxis_range

Method set_yaxis_range

chartify/_core/axes.py:272–286  ·  view source on GitHub ↗

Set y-axis range. Args: start (numeric, optional): the start of the y-axis range end (numeric, optional): the end of the y-axis range Returns: Current chart object

(self, start=None, end=None)

Source from the content-addressed store, hash-verified

270
271class NumericalYMixin:
272 def set_yaxis_range(self, start=None, end=None):
273 """Set y-axis range.
274
275 Args:
276 start (numeric, optional): the start of the y-axis range
277 end (numeric, optional): the end of the y-axis range
278
279 Returns:
280 Current chart object
281 """
282 if end is not None:
283 self._y_range.end = end
284 if start is not None:
285 self._y_range.start = start
286 return self._chart
287
288 def set_yaxis_tick_values(self, values):
289 """Set y-axis tick values.

Callers 3

_bar_example_4Function · 0.80
_second_axis_exampleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected