summaryrefslogtreecommitdiffstats
path: root/openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py
diff options
context:
space:
mode:
authorDanglewood <85772166+deeleeramone@users.noreply.github.com>2024-06-05 09:19:10 -0700
committerGitHub <noreply@github.com>2024-06-05 09:19:10 -0700
commitc7047e62cdeb52cbf7f30520cf661c8bb4997318 (patch)
tree8964344e79ebe024f239a693db8066e41c760a9b /openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py
parentefdea96fc471a5d12306377c3a3728e9a0ef4ac6 (diff)
parentcdf0befe516017b021ab946a8194a58bbc18b82c (diff)
Merge branch 'main' into docs/fix-typodocs/fix-typo
Diffstat (limited to 'openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py')
-rw-r--r--openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py b/openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py
index e41a87bb02a..c255ef7f226 100644
--- a/openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py
+++ b/openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py
@@ -464,24 +464,6 @@ class OpenBBFigure(go.Figure):
self.update_layout(barmode="overlay", bargap=0.01, bargroupgap=0)
- def is_image_export(self, export: Optional[str] = "") -> bool:
- """Check if the export format is an image format.
-
- Parameters
- ----------
- export : `str`
- Export format
-
- Returns
- -------
- `bool`
- True if the export format is an image format, False otherwise
- """
- if not export:
- return False
-
- return any(ext in export for ext in ["jpg", "png", "svg"])
-
def set_title(
self, title: str, wrap: bool = False, wrap_width: int = 80, **kwargs
) -> "OpenBBFigure":
@@ -917,7 +899,7 @@ class OpenBBFigure(go.Figure):
self._exported = True
# We send the figure to the backend to be displayed
- return self._backend.send_figure(self, export_image)
+ return self._backend.send_figure(fig=self, export_image=export_image)
except Exception as e:
# If the backend fails, we just show the figure normally
# This is a very rare case, but it's better to have a fallback