Spaces:
Runtime error
Runtime error
File size: 443 Bytes
7a654d3 b2032f7 7a654d3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import streamlit as st
import pandas as pd
import matplotlib.pyplot as plt
# Plotly imports
from plotly.subplots import make_subplots
import plotly.graph_objects as go
import plotly.figure_factory as ff
import plotly.express as px
def plot(df):
st.title('Surface grid visualization')
cmap = plt.cm.jet
fig, ax = plt.subplots()
ax.scatter(df.X,df.Y,c=df.Z,cmap=cmap)
fig.set_size_inches(9, 6)
st.pyplot(fig)
|