Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plt .show

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 :: make a script run itself again python 
Python :: work with gzip 
Python :: remove all odd row pandas 
Python :: skip element in list comprehension 
Python :: python turtle get mouse position 
Python :: read a file in python 
Python :: youtube-dl python get file name 
Python :: Converting uint8 into integers 
Python :: how to make a stopwatch in python 
Python :: matplotlib to pdf 
Python :: conda environment 
Python :: binary to decimal python 
Python :: custom validation in django models 
Python :: python slice dictionary 
Python :: discord.py how to print audit logs 
Python :: mongo db python 
Python :: python random liste 
Python :: print 1to 10 number without using loop in python 
Python :: python return min length of list 
Python :: pandas filter with given value 
Python :: numpy linspace 
Python :: posted data to flask 
Python :: non-integer arg 1 for randrange() 
Python :: comment in python 
Python :: crear una clase en python 
Python :: ssl django nginx 
Python :: from django.contrib import messages 
Python :: how to remove spaces in string in python 
Python :: python series to list of string 
Python :: use loc for change values pandas 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =