import matplotlib.pyplot as pyplot
fprop=matplotlib.font_manager.FontProperties(size='xx-small')
pyplot.yticks((70,80,90,100),('70%','80%','90%','100%'),
color="#8c949d",horizontalalignment='right',fontproperties=fprop )
This will cause all the kwargs to be ignored, so the color, alignment and
fonts are all at their default values.
pyplot.yticks((70,80,90,100),color="#8c949d",horizontalalignment='right',fontproperties=fprop
)
this on, on the other hand, works fine.
This is showing that when you provide labels for the ticks (second arg to
yticks), the kwargs are ignored. Does anyone have any idea why this is the
case?
···
–
View this message in context: http://old.nabble.com/pyplot.yticks-ignoring-font-if-labels-are-supplied%2C-any-ideas--tp27553479p27553479.html
Sent from the matplotlib - users mailing list archive at Nabble.com.