Commit 557c299
Update pyplot documentation to match latest reflex-graphing implementation (#1474)
* Update pyplot documentation to match latest reflex-graphing implementation
- Replace outdated state management with @rx.var computed variables
- Add fig_light and fig_dark computed vars with proper plt.close(fig) calls
- Replace on_mount pattern with rx.color_mode_cond for theme switching
- Add missing Figure import for proper type hints
- Ensure interactive features (randomize button, slider) work in both light and dark modes
Co-Authored-By: Alek <[email protected]>
* Remove redundant plt.close() calls from computed variables
The create_plot function already closes the figure, so additional
plt.close() calls in the @rx.var methods were redundant and could
cause issues. This addresses the greptile-apps bot feedback.
Co-Authored-By: Alek <[email protected]>
* Update reflex-pyplot version constraint to >= 0.2.0
- Changed from pinned version 0.1.3 to >= 0.2.0 for compatibility with latest pyplot features
- Regenerated uv.lock file to reflect the version update
- Ensures compatibility with @rx.var computed variables used in updated documentation
Co-Authored-By: Alek <[email protected]>
* Fix reflex-pyplot import statements for version 0.2.0
- Update import from 'reflex_pyplot' to 'custom_components.reflex_pyplot'
- Fixes ModuleNotFoundError caused by module structure change in reflex-pyplot 0.2.0
- Updates all 4 locations: docs/__init__.py and 3 code blocks in pyplot.md
Co-Authored-By: Alek <[email protected]>
* Revert to simplified reflex-pyplot imports for version 0.2.1
- Update pyproject.toml to require reflex-pyplot >= 0.2.1
- Revert import statements from custom_components.reflex_pyplot back to reflex_pyplot
- Update all 3 code blocks in pyplot documentation
- Regenerate uv.lock with updated dependency
Co-Authored-By: Alek <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek <[email protected]>1 parent fe34aa9 commit 557c299
File tree
3 files changed
+20
-22
lines changed- docs/library/graphing/other-charts
3 files changed
+20
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments