MCPcopy
hub / github.com/pandas-dev/pandas / set_ticks_props

Function set_ticks_props

pandas/plotting/_matplotlib/tools.py:454–470  ·  view source on GitHub ↗
(
    axes: Axes | Iterable[Axes],
    xlabelsize: int | None = None,
    xrot=None,
    ylabelsize: int | None = None,
    yrot=None,
)

Source from the content-addressed store, hash-verified

452
453
454def set_ticks_props(
455 axes: Axes | Iterable[Axes],
456 xlabelsize: int | None = None,
457 xrot=None,
458 ylabelsize: int | None = None,
459 yrot=None,
460):
461 for ax in flatten_axes(axes):
462 if xlabelsize is not None:
463 mpl.artist.setp(ax.get_xticklabels(), fontsize=xlabelsize) # type: ignore[arg-type]
464 if xrot is not None:
465 mpl.artist.setp(ax.get_xticklabels(), rotation=xrot) # type: ignore[arg-type]
466 if ylabelsize is not None:
467 mpl.artist.setp(ax.get_yticklabels(), fontsize=ylabelsize) # type: ignore[arg-type]
468 if yrot is not None:
469 mpl.artist.setp(ax.get_yticklabels(), rotation=yrot) # type: ignore[arg-type]
470 return axes
471
472
473def get_all_lines(ax: Axes) -> list[Line2D]:

Callers 4

scatter_matrixFunction · 0.90
_grouped_histFunction · 0.90
hist_seriesFunction · 0.90
hist_frameFunction · 0.90

Calls 1

flatten_axesFunction · 0.85

Tested by

no test coverage detected