Answers for "set figsize matplotlib"

18

plt figsize

plt.figure(figsize=(20,10))
Posted by: Guest on March-31-2020
1

figsize matplotlib

# figsize is an optional parameter in matplotlib.pyplot library's .figure() function
# it defaults to = None
# syntax:
# 	figsize=(width, height)
#		- each integer much be a float

import matplotlib.pyplot as plt

figure = plt.figure(figsize = (10,5));
Posted by: Guest on June-18-2020
0

plt.plot figure size

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (20,3)
Posted by: Guest on July-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language