Closed
Description
Bug report
Bug summary
In as.text
, ax.set_title
and all the functions realated to displaying characters on the figure,
the arguement size
is ignored if it is placed before fontproperties.
Code for reproduction
data = np.random.randn(10000)
plt.hist(data, bins=40, facecolor="blue", edgecolor="black", alpha=0.5)
plt.xlabel("value", fontproperties='SimHei',size=20 ) # this will work
plt.ylabel("counts",size=20, fontproperties='SimHei') # this doesn't
plt.show()
This issue is replicated with ipython (%pylab) and jupyter-notebook
Actual outcome
# If applicable, paste the console output here
#
#
Expected outcome
Matplotlib version
- Operating system: win10 1909
- Matplotlib version: Version :3.1.2 , Build : py36_1 , conda-forge
- Matplotlib backend (
print(matplotlib.get_backend())
): module://ipykernel.pylab.backend_inline - Python version: 3.6.10
- Jupyter version (if applicable): version 1.0.0
- Other libraries:
conda install -c conda-forge matplotlib