Spaces:
Build error
Build error
jordancaraballo
commited on
Commit
•
73a4e01
1
Parent(s):
4d5c5c8
Adding test page to hf
Browse files- pages/02_matplotlib.py +2 -1
pages/02_matplotlib.py
CHANGED
@@ -12,6 +12,7 @@ center = solara.reactive((20, 0))
|
|
12 |
|
13 |
class PauseAnimation:
|
14 |
def __init__(self):
|
|
|
15 |
self.fig = Figure()
|
16 |
ax = self.fig.subplots()
|
17 |
ax.set_title('Click to pause/resume the animation')
|
@@ -51,4 +52,4 @@ def Page():
|
|
51 |
#ax = fig.subplots()
|
52 |
#ax.plot([1, 2, 3], [1, 4, 9])
|
53 |
pa = PauseAnimation()
|
54 |
-
return solara.FigureMatplotlib(pa
|
|
|
12 |
|
13 |
class PauseAnimation:
|
14 |
def __init__(self):
|
15 |
+
|
16 |
self.fig = Figure()
|
17 |
ax = self.fig.subplots()
|
18 |
ax.set_title('Click to pause/resume the animation')
|
|
|
52 |
#ax = fig.subplots()
|
53 |
#ax.plot([1, 2, 3], [1, 4, 9])
|
54 |
pa = PauseAnimation()
|
55 |
+
return solara.FigureMatplotlib(pa)
|