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

Method hide_xaxis

chartify/_core/axes.py:159–173  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

157 return self._chart
158
159 def hide_xaxis(self):
160 """Hide the tick labels, ticks, and axis lines of the x-axis.
161
162 The x-axis label will remain visible, but can be
163 removed with .axes.set_xaxis_label("")
164
165 """
166 # self._chart.figure.xaxis.visible = False
167
168 self._chart.figure.xaxis.axis_line_alpha = 0
169 self._chart.figure.xaxis.major_tick_line_color = None
170 self._chart.figure.xaxis.minor_tick_line_color = None
171 self._chart.figure.xaxis.major_label_text_color = None
172
173 return self._chart
174
175 def set_xaxis_tick_orientation(self, orientation="horizontal"):
176 """Change the orientation or the x axis tick labels.

Callers 3

_radar_area_example_1Function · 0.45
plot_radar_radiusFunction · 0.45
hide_xaxisMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected