Answers for "how to set title to a subplot"

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 "how to set title to a subplot"

Python Answers by Framework

Browse Popular Code Answers by Language