Answers for "library matplotlib.pyplot"

8

import matplotlib.pyplot as plt

from matplotlib import pyplot as plt

import matplotlib.pyplot as plt
Posted by: Guest on March-15-2020
13

matplotlib

# importing matplotlib module  
from matplotlib import pyplot as plt 
  
# x-axis values 
x = [5, 2, 9, 4, 7] 
  
# Y-axis values 
y = [10, 5, 8, 4, 2] 
  
# Function to plot scatter 
plt.scatter(x, y) 
  
# function to show the plot 
plt.show()
Posted by: Guest on June-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language