Spaces:
Sleeping
Sleeping
File size: 2,453 Bytes
e88abf9 b4d652c e88abf9 58444c2 e88abf9 b4d652c e88abf9 b4d652c e88abf9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
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
@solara.component
def line():
with solara.Sidebar():
SharedSidebar()
LinePlot()
@solara.component
def bar():
with solara.Sidebar():
SharedSidebar()
BarPlot()
@solara.component
def scatter():
with solara.Sidebar():
SharedSidebar()
ScatterPlot()
@solara.component
def pie_chart():
with solara.Sidebar():
SharedSidebar()
PieChart()
@solara.component
def histogram():
with solara.Sidebar():
SharedSidebar()
Histograms()
@solara.component
def Box():
with solara.Sidebar():
SharedSidebar()
Boxs()
@solara.component
def violin():
with solara.Sidebar():
SharedSidebar()
Violins()
@solara.component
def density():
with solara.Sidebar():
SharedSidebar()
DensityHeatmap()
@solara.component
def treeD_plot():
with solara.Sidebar():
SharedSidebar()
TreeD()
@solara.component
def map_plot():
with solara.Sidebar():
SharedSidebar()
Maps()
@solara.component
def other():
with solara.Sidebar():
SharedSidebar()
OtherPlots()
@solara.component
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"),
] |