def update_yticks(ax: matplotlib.axes.Axes,
                  fontsize: float = 12,
                  fontweight: str = 'bold') -> None:
    """Stylize y-ticks."""
    ax.yaxis.set_tick_params(width=2, pad=0.1)
    fp = font_manager.FontProperties(weight=fontweight, size=fontsize)
    for label in ax.get_yticklabels():
        label.set_fontproperties(fp)
Exemplo n.º 2
0
 def tick(self, axs: mpl.axes.Axes) -> None:
     """Modify font of tick-labels."""
     if not self.tickfont:
         return ()
     return axs.get_xticklabels() + axs.get_yticklabels()