font-size

python matplotlib increase bar label font size

python matplotlib increase bar label font size Question: I have a subplot which may include different stacked bar charts. I want to increase the font size of the bar label as it is appearing small. for ex. in ax.bar(adjlocs, … label=’…’, …) I want the font size of what is set to label to be …

Total answers: 2

How to set font size of Matplotlib axis Legend?

How to set font size of Matplotlib axis Legend? Question: I have a code like this: import matplotlib.pyplot as plt from matplotlib.pyplot import * from matplotlib.font_manager import FontProperties fontP = FontProperties() fontP.set_size(‘xx-small’) fig=plt.figure() ax1=fig.add_subplot(111) plot([1,2,3], label=”test1″) ax1.legend(loc=0, ncol=1, bbox_to_anchor=(0, 0, 1, 1), prop = fontP,fancybox=True,shadow=False,title=’LEGEND’) plt.show() It can be seen in the plot that the …

Total answers: 10

How to change the font size on a matplotlib plot

How to change the font size on a matplotlib plot Question: How does one change the font size for all elements (ticks, labels, title) on a matplotlib plot? I know how to change the tick label sizes, this is done with: import matplotlib matplotlib.rc(‘xtick’, labelsize=20) matplotlib.rc(‘ytick’, labelsize=20) But how does one change the rest? Asked …

Total answers: 16