Spaces:
Runtime error
Runtime error
Download plotting.py from dhhien/KVL_converter: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/dhhien/KVL_converter/resolve/main/plotting.py
- Command line
-
hf download hf://spaces/dhhien/KVL_converter/plotting.py
-
curl -L -o plotting.py https://huggingface.co/spaces/dhhien/KVL_converter/resolve/main/plotting.py
443 Bytes
| 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) | |