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

Method hide_yaxis

chartify/_core/axes.py:54–64  ·  view source on GitHub ↗

Hide the tick labels, ticks, and axis lines of the y-axis. The y-axis label will remain visible, but can be removed with .axes.set_yaxis_label("")

(self)

Source from the content-addressed store, hash-verified

52 return self._chart
53
54 def hide_yaxis(self):
55 """Hide the tick labels, ticks, and axis lines of the y-axis.
56
57 The y-axis label will remain visible, but can be
58 removed with .axes.set_yaxis_label("")
59 """
60 self._chart.figure.yaxis[self._y_axis_index].axis_line_alpha = 0
61 self._chart.figure.yaxis[self._y_axis_index].major_tick_line_color = None
62 self._chart.figure.yaxis[self._y_axis_index].minor_tick_line_color = None
63 self._chart.figure.yaxis[self._y_axis_index].major_label_text_color = None
64 return self._chart
65
66
67class BaseAxes(YAxisMixin):

Callers 4

_bar_example_4Function · 0.45
_radar_area_example_1Function · 0.45
plot_radar_radiusFunction · 0.45
hide_yaxisMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected