Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

streamlit add chart

# Plotting matplotlib
import matplotlib.pyplot as plt

labels = ["a", "b", "c"]
sizes = [100, 200, 50]

fig, ax = plt.subplots(figsize=(10,10))
ax.pie(sizes, labels=labels, autopct="%1.1f%%")
ax.axis("equal")

st.pyplot(fig)
Comment

PREVIOUS NEXT
Code Example
Python :: mixpanel export api 
Python :: Adding a new column in pandas dataframe from another dataframe with different index 
Python :: current date to midnight 
Python :: subplots 
Python :: odoo model 
Python :: database with python 
Python :: Delete All Rows In Table Django 
Python :: how to while true python 
Python :: inheritance in python 3 example 
Python :: python int to byte 
Python :: python generators 
Python :: os.filename 
Python :: global array python 
Python :: remove punctuation from a string 
Python :: fix the debug_mode = false django 
Python :: init array in numpy 
Python :: python separate strings into characters 
Python :: matlab .* operator in python 
Python :: logging store info to different files 
Python :: qr detector 
Python :: neat way to print 2d array 
Python :: how to iterate row wise using 2d integer array in python 
Python :: truthy falsy python 
Python :: change value in tuple 
Python :: como instalar python en ubuntu 20.04 
Python :: convolution operation pytorch 
Python :: list insert python 
Python :: replace nan in pandas column with mode and printing it 
Python :: simple python class 
Python :: python string: .strip() 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =