Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib draw line x1, y1

import matplotlib.pyplot as plt
x1, y1 = [-1, 12], [1, 10]
x2, y2 = [-1, 10], [3, -1]
plt.xlim(0, 8), plt.ylim(-2, 8)
plt.plot(x1, y1, x2, y2, marker = 'o')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python processpoolexecutor 
Python :: enumerate items python 
Python :: python remove 
Python :: get vowels from string python 
Python :: fernet generate key from password 
Python :: pandas load feather 
Python :: skimage local threshold 
Python :: python regular expressions 
Python :: jinja if or 
Python :: check if variable is empty python 
Python :: python input list of ints 
Python :: python heatmap 
Python :: django bootstrap 
Python :: python suppress warnings in function 
Python :: python multiply 2 variables 
Python :: numpy put arrays in columns 
Python :: create new column with mask pandas 
Python :: geodataframe change crs 
Python :: text from xml doc in python 
Python :: character in string python 
Python :: keras 
Python :: python - extract the price from a string 
Python :: compare multiple columns in pandas 
Python :: python int string float 
Python :: Link In Django 
Python :: Neuraal Netwerk python text 
Python :: add a tuple to a dictionary python 
Python :: how to make a button open a new window in python 
Python :: List comprehension if-else 
Python :: dataframe cut based on range 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =