summaryrefslogtreecommitdiffstats
path: root/openbb_platform/obbject_extensions/charting/openbb_charting/core/openbb_figure.py
diff options
context:
space:
mode:
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