-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path__init__.py
More file actions
59 lines (35 loc) · 1.08 KB
/
Copy path__init__.py
File metadata and controls
59 lines (35 loc) · 1.08 KB
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
from __future__ import annotations
from typing import TYPE_CHECKING
from ridgeplot_examples._base import Example
if TYPE_CHECKING:
import plotly.graph_objects as go
__all__ = [
"ALL_EXAMPLES",
"Example",
]
def load_basic() -> go.Figure:
from ._basic import main
return main()
def load_basic_dark() -> go.Figure:
from ._basic_dark import main
return main()
def load_basic_hist() -> go.Figure:
from ._basic_hist import main
return main()
def load_lincoln_weather() -> go.Figure:
from ._lincoln_weather import main
return main()
def load_lincoln_weather_red_blue() -> go.Figure:
from ._lincoln_weather_red_blue import main
return main()
def load_probly() -> go.Figure:
from ._probly import main
return main()
ALL_EXAMPLES: list[Example] = [
Example("basic", load_basic),
Example("basic_dark", load_basic_dark),
Example("basic_hist", load_basic_hist),
Example("lincoln_weather", load_lincoln_weather),
Example("lincoln_weather_red_blue", load_lincoln_weather_red_blue),
Example("probly", load_probly),
]