Answers for "main points on matplotlib"

1

how to plotting points on matplotlib

import matplotlib.pyplot as plt 
import numpy as np

data = np.random.rand(1024,2)
plt.scatter(data[:,0],data[:,1])
plt.show()
// Don't be
// fooled by this simplicity— plt.scatter() is a rich command.
Posted by: Guest on June-13-2020
0

how to import matplotlib.pyplo in python

import matplotlib.pylot as plt
Posted by: Guest on May-21-2020
0

matplotlib include first number in plotter

ax.set_xticks(np.arange(len(x)))
ax.set_xticklabels(x, rotation = 45)
Posted by: Guest on November-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language