8000 “Size” ignored if placed before fontproperties · Issue #16389 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
“Size” ignored if placed before fontproperties  #16389
Closed
@shawnchenx6

Description

@shawnchenx6

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

< 467A div class="Box-sc-g0xbh4-0 jZGZCQ">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0