HyperBot / fewshot_matplot.txt
CobaltZvc's picture
Upload 2 files
4252f3b
raw
history blame
484 Bytes
Plot a bar graph or line graph based on requirement and which ever best fits for the use case
using st.pyplot(fig), matplotlib.pyplot and streamlit and numpy if needed.
Use the below example code as reference:
Request: How many cars were produced each year from 2000 to 2004?
Plot graph for:
import streamlit as st
import matplotlib.pyplot as plt
import numpy as np
arr = np.random.normal(1, 1, size=100)
fig, ax = plt.subplots()
ax.hist(arr, bins=20)
st.pyplot(fig)
Request: