Matplotlib Tick Label Fontweight Is Limited To A Few Options
See the following code import numpy as np import matplotlib.pyplot as plt x = np.linspace(0.0001, 30, 1000) y = np.sin(x)/x fig, ax = plt.subplots(1, 1) ax.plot(x, y) ax.tick_par
Solution 1:
Normally, a font only has limited number of font weight, such as Regular
, Medium
, Bold
, etc. The font weights are not infinite.
There is correspondence between the numeric value and finite font weight. For more details, see here.
Post a Comment for "Matplotlib Tick Label Fontweight Is Limited To A Few Options"