Answers for "matplotlib title subplot"

12

matplotlib title

import matplotlib.pyplot as plt

plt.title('TITLE')
Posted by: Guest on April-17-2020
4

matplotlib subplots title

fig.suptitle('This is a somewhat long figure title', fontsize=16)
Posted by: Guest on April-05-2020
2

matplotlib title inside plot

import matplotlib. pyplot as plt
A= [2,1,4,5]; B = [3,2,-2,1]
plt.scatter(A,B)
plt.title("title", x=0.9, y=0.9)
plt.xlabel("x-axis")
plt.ylabel("y-axis")
plt.show()
Posted by: Guest on January-25-2021
1

title subplot

import matplolib.pyplot as plt
for i in range(4):
    plt.subplot(2,2,i+1).set_title('Subplot n°{}' .format(i+1))
plt.show()
Posted by: Guest on March-18-2020

Code answers related to "matplotlib title subplot"

Python Answers by Framework

Browse Popular Code Answers by Language