Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib plot title font size

from matplotlib import pyplot as plt    

fig = plt.figure()
plt.plot(data)
fig.suptitle('test title', fontsize=20)
plt.xlabel('xlabel', fontsize=18)
plt.ylabel('ylabel', fontsize=16)
fig.savefig('test.jpg')
Comment

change matplotlib fontsize

font = {'family' : 'normal',
        'weight' : 'bold',
        'size'   : 22}

matplotlib.rc('font', **font)
Comment

PREVIOUS NEXT
Code Example
Python :: Send GIF in Embed discord.py 
Python :: rotate point around point python 
Python :: python substitute multiple letters 
Python :: LoginRequiredMixin 
Python :: flask api abort 
Python :: matplotlib position legend 
Python :: python summary() 
Python :: rename columns 
Python :: python write binary 
Python :: discord.py say something 
Python :: yahoo finance api python 
Python :: how to create numpy array using two vectors 
Python :: drop every other column pandas 
Python :: how to do a foreach loop in python 
Python :: python dict remove key 
Python :: how to use csv in python 
Python :: E: Unable to locate package python-gobject 
Python :: check dir exist python 
Python :: python file hidden 
Python :: how to merge two dictionaries 
Python :: python list divide 
Python :: python random liste 
Python :: measure time per line python 
Python :: STATIC_ROOT 
Python :: reload flask on change 
Python :: python round down 
Python :: requests.packages.urllib3.util.retry could not be resolved from source 
Python :: plotly vertical bar chart 
Python :: python soup 
Python :: how to cout in python 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =