You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to specity the font properties for x-tick's labels via **kwargs of pyplot.xtics(), the specification is not effective except 1st tick label.
I found this comes from that specified font property is poped (see line 5 in code snippet below) from **kwargs in the function update in text.py, so the font property for 2nd tick label isn't specified any more.
defupdate(self, kwargs):
# docstring inheritedsentinel=object() # bbox can be None, so use another sentinel.# Update fontproperties first, as it has lowest priority.fontproperties=kwargs.pop("fontproperties", sentinel)
iffontpropertiesisnotsentinel:
self.set_fontproperties(fontproperties)
# Update bbox last, as it depends on font properties.bbox=kwargs.pop("bbox", sentinel)
super().update(kwargs)
ifbboxisnotsentinel:
self.set_bbox(bbox)
When I experimentally change pop to get in the line, the plot is what I expected, like below.
Bug report
Bug summary
When I try to specity the font properties for x-tick's labels via **kwargs of pyplot.xtics(), the specification is not effective except 1st tick label.
Code for reproduction
Actual outcome
I found this comes from that specified font property is poped (see line 5 in code snippet below) from **kwargs in the function
update
in text.py, so the font property for 2nd tick label isn't specified any more.When I experimentally change
pop
toget
in the line, the plot is what I expected, like below.Expected outcome

Matplotlib version
print(matplotlib.get_backend())
):Qt5AggThe text was updated successfully, but these errors were encountered: