Dernière activité 1715846524

Révision a4aba621814f44cda3b97780c1032f51631007f0

q27.py Brut
1# Create 2 arrays, using MatPlotLib, plot the graph with the content of the two arrays, with coordinates plotted on
2# x-axis and y-axis.
3
4import numpy as np
5import matplotlib.pyplot as plt
6from random import randint
7
8points = np.array([
9 [randint(0, 100) for _ in range(50)],
10 [randint(0, 100) for _ in range(50)],
11])
12
13fig, ax = plt.subplots()
14ax.plot(points[0], points[1], 'ro')
15plt.show()
16