Answers for "pyplot vs matplotlib"

1

pyplot python

import numpy as np
import matplotlib.pyplot as plt

x = np.array([1, 3, 4, 6])
y = np.array([2, 3, 5, 1])
plt.plot(x, y)

plt.show()
Posted by: Guest on December-22-2020
0

figure vs plot matplotlib

fig1, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)
Posted by: Guest on November-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language