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

axis font size matplotlib

import matplotlib.pyplot as plt

SMALL_SIZE = 8
MEDIUM_SIZE = 10
BIGGER_SIZE = 12

plt.rc('font', size=SMALL_SIZE)          # controls default text sizes
plt.rc('axes', titlesize=SMALL_SIZE)     # fontsize of the axes title
plt.rc('axes', labelsize=MEDIUM_SIZE)    # fontsize of the x and y labels
plt.rc('xtick', labelsize=SMALL_SIZE)    # fontsize of the tick labels
plt.rc('ytick', labelsize=SMALL_SIZE)    # fontsize of the tick labels
plt.rc('legend', fontsize=SMALL_SIZE)    # legend fontsize
plt.rc('figure', titlesize=BIGGER_SIZE)  # fontsize of the figure title
Comment

plt axis label font size


plt.xlabel('xlabel', fontsize=18)
plt.ylabel('ylabel', fontsize=16)
Comment

PREVIOUS NEXT
Code Example
Python :: syntax to update sklearn 
Python :: pygame change logo 
Python :: pandas to csv without header 
Python :: daphne heroku 
Python :: pandas select by column value 
Python :: discord py on ready 
Python :: python add 1 to count 
Python :: pretty print list python 
Python :: selenium-screenshot python 
Python :: open url python 
Python :: python print how long it takes to run 
Python :: fill python list with input 
Python :: python random randint except a number 
Python :: python print file 
Python :: mean squared error python 
Python :: pil get image size 
Python :: human readable time difference python 
Python :: python change filename 
Python :: get role from name discord.py 
Python :: python datetime add minutes 
Python :: numpy from csv 
Python :: dictionary sort python 
Python :: update my anaconda 
Python :: pandas add character to string 
Python :: python merge pdfs 
Python :: python first day of last month 
Python :: best games made in pygame 
Python :: how to sum digits of a number in python 
Python :: import numpy Illegal instruction (core dumped) 
Python :: python get all images in directory 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =