Answers for "how to increase the font size in plt.ylim() of matplotlib"

18

increase figure size in matplotlib

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

matplotlib measure the width of text

from matplotlib import pyplot as plt

f = plt.figure()
r = f.canvas.get_renderer()
t = plt.text(0.5, 0.5, 'test')

bb = t.get_window_extent(renderer=r)
width = bb.width
height = bb.height
Posted by: Guest on June-05-2020

Code answers related to "how to increase the font size in plt.ylim() of matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language