Spaces:
Sleeping
Sleeping
| import solara | |
| from utils import SharedSidebar | |
| from bar import BarPlot | |
| from line import LinePlot | |
| from scatter import ScatterPlot | |
| from pie import PieChart | |
| from histogram import Histograms | |
| from boxs import Boxs | |
| from violin import Violins | |
| from density_heatmap import DensityHeatmap | |
| from treed_plot import TreeD | |
| from maps import Maps | |
| from other_plot import OtherPlots | |
| from animated_plot import AnimatedPlots | |
| #test | |
| def line(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| LinePlot() | |
| def bar(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| BarPlot() | |
| def scatter(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| ScatterPlot() | |
| def pie_chart(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| PieChart() | |
| def histogram(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| Histograms() | |
| def Box(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| Boxs() | |
| def violin(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| Violins() | |
| def density(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| DensityHeatmap() | |
| def treeD_plot(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| TreeD() | |
| def map_plot(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| Maps() | |
| def other(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| OtherPlots() | |
| def animate(): | |
| with solara.Sidebar(): | |
| SharedSidebar() | |
| AnimatedPlots() | |
| routes = [ | |
| solara.Route(path="/", component=line, label="Line"), | |
| solara.Route(path="bar", component=bar, label="Bar"), | |
| solara.Route(path="scatter", component=scatter, label="Scatter"), | |
| solara.Route(path="pie", component=pie_chart, label="Pie"), | |
| solara.Route(path="histogram", component=histogram, label="Histogram"), | |
| solara.Route(path="box", component=Box, label="Box"), | |
| solara.Route(path="violin", component=violin, label="Violin"), | |
| solara.Route(path="density-heatmap", component=density, label="Density-Heatmap"), | |
| solara.Route(path="Plot_3D", component=treeD_plot, label="3D-Plot"), | |
| solara.Route(path="map", component=map_plot, label="Maps"), | |
| solara.Route(path="other", component=other, label="Other_Plot"), | |
| solara.Route(path="animated", component=animate, label="Animated_Plot"), | |
| ] |