Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

increase xlabel font size matplotlib

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

PREVIOUS NEXT
Code Example
Python :: get mouse click coordinates python turtle 
Python :: python matplotlib log scale 
Python :: unable to locate package python-pip 
Python :: python rotate screen 
Python :: ipykernel pip 
Python :: ERROR: character with byte sequence 0xd0 0x9f in encoding "UTF8" has no equivalent in encoding "LATIN1" 
Python :: not x axis labels python 
Python :: ind vs wi 
Python :: set axis limits matplotlib 
Python :: random boolean python 
Python :: export file csv python 
Python :: make a list from 0 to n python 
Python :: split array into chunks python 
Python :: NameError: name ‘np’ is not defined 
Python :: pandas rename index 
Python :: how to convert datetime to jdatetime 
Python :: python urlencode with requests 
Python :: pytorch plt.imshow 
Python :: check numpy version 
Python :: how to estimate process timing python 
Python :: dataframe get list of index vlaues 
Python :: python generate dates between two dates 
Python :: FutureWarning: Input image dtype is bool. Interpolation is not defined with bool data type. Please set order to 0 or explicitly cast input image to another data type. Starting from version 0.19 a ValueError will be raised instead of this warning. 
Python :: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject 
Python :: webbrowser python could not locate runnable browser 
Python :: python split string by tab 
Python :: install python glob module in windows 
Python :: put text on image python 
Python :: python 2 decimal places 
Python :: pandas group by month 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =