Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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 :: find rows in dataframe from another dataframe python 
Python :: python enumerate() function 
Python :: python csv reader skip header 
Python :: pandas summarize all columns 
Python :: python tkinter set minimum window size 
Python :: pd merge on multiple columns 
Python :: 2 numbers after comma python 
Python :: python get names of all classes 
Python :: django import csrf exemplt 
Python :: python random word 
Python :: real time crypto prices python 
Python :: python - removeempy space in a cell 
Python :: pandas shift columns up until value 
Python :: random hex color python 
Python :: dataframe print column comma separated 
Python :: tkinter how to connect keyboard key to button 
Python :: isinstance float or int 
Python :: bot ping discord.py 
Python :: pop vs remove python 
Python :: python get response headers 
Python :: how to check if item is file in python or not 
Python :: new in python 
Python :: python list of all characters 
Python :: python swap two elements 
Python :: generate gif py 
Python :: star pattern in python 
Python :: how to compare two text files in python 
Python :: export pythonpath linux 
Python :: Import CSV Files into R Using fread() method 
Python :: pandas concatenate 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =