Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

simple secatter plot

import matplotlib.pyplot as plt

X = [1,2,3,4,5]
Y = [1,1,1,1,1]
labels = 'ABCDE'
sizes = [10, 15, 20, 25, 30]

fig, ax = plt.subplots()

ax.scatter(X, Y)

for x, y, label, size in zip(X, Y, labels, sizes):
    ax.annotate(label, (x, y), fontsize=size)

plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python string in set 
Python :: how to clear ipython console 
Python :: how to ask a question in python 
Python :: python for loop with increment 
Python :: fill zero behind number python 
Python :: django unique together 
Python :: python telethon 
Python :: readlines from file python 
Python :: add two list in python 
Python :: pil normalize image 
Python :: python write line break 
Python :: how to import turtle in python 
Python :: select a range of rows in pandas dataframe 
Python :: how to convert decimal to binary python 
Python :: does jupyter notebook need internet 
Python :: flask-callable 
Python :: python how to get user input 
Python :: python time function in for loop 
Python :: django set random password 
Python :: skip to next iteration in for loop python 
Python :: how to check how many items are in a list python 
Python :: save model tensorflow 
Python :: django orm sum 
Python :: flask migrate 
Python :: python random list of integers without repetition 
Python :: python send image server 
Python :: python requests get 
Python :: pandas index to datetime 
Python :: python find smallest value in 2d list 
Python :: How to change values in a pandas DataFrame column based on a condition in Python 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =