Skip to content

Commit 70a8fdc

Browse files
Fix AttributeError: replace rx.get_color_mode() with rx.color_mode
Co-Authored-By: Alek Petuskey <[email protected]>
1 parent 3f42927 commit 70a8fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/library/graphing/other-charts/pyplot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class PyplotState(rx.State):
122122
@rx.event
123123
def update_fig(self):
124124
"""Update the figure with current data."""
125-
theme = "dark" if rx.get_color_mode() == "dark" else "light"
125+
theme = "dark" if rx.color_mode == "dark" else "light"
126126
self.fig = create_plot(theme, self.plot_data, self.scale)
127127

128128
@rx.event

0 commit comments

Comments
 (0)