Answers for "python graphing"

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
5

python matplt

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
Posted by: Guest on February-21-2020
1

graph implementation in python

graph = {'A': ['B', 'C'],
             'B': ['C', 'D'],
             'C': ['D'],
             'D': ['C'],
             'E': ['F'],
             'F': ['C']}
Posted by: Guest on August-10-2021
-1

python graph

The Python Graph Gallery
Link : https://python-graph-gallery.com/all-charts/
    #This page displays all the charts currently present in the python
Posted by: Guest on June-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language