forked from spacetelescope/lcviz
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates for upstream migration from export plot to export plugin (#5)
- Loading branch information
Showing
6 changed files
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .export import * # noqa |
19 changes: 10 additions & 9 deletions
19
lcviz/plugins/export_plot/export_plot.py → lcviz/plugins/export/export.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
from jdaviz.configs.default.plugins import ExportViewer | ||
from jdaviz.configs.default.plugins import Export | ||
from jdaviz.core.registries import tray_registry | ||
|
||
__all__ = ['ExportViewer'] | ||
__all__ = ['Export'] | ||
|
||
|
||
@tray_registry('lcviz-export-plot', label="Export Plot") | ||
class ExportViewer(ExportViewer): | ||
@tray_registry('lcviz-export', label="Export") | ||
class Export(Export): | ||
""" | ||
See the :ref:`Export Plot Plugin Documentation <export-plot>` for more details. | ||
See the :ref:`Export Plot Plugin Documentation <export>` for more details. | ||
Only the following attributes and methods are available through the | ||
:ref:`public plugin API <plugin-apis>`: | ||
* :meth:`~jdaviz.core.template_mixin.PluginTemplateMixin.show` | ||
* :meth:`~jdaviz.core.template_mixin.PluginTemplateMixin.open_in_tray` | ||
* :meth:`~jdaviz.core.template_mixin.PluginTemplateMixin.close_in_tray` | ||
* ``viewer`` (:class:`~jdaviz.core.template_mixin.ViewerSelect`): | ||
Viewer to select for exporting the figure image. | ||
* :meth:`save_figure` | ||
* ``viewer`` (:class:`~jdaviz.core.template_mixin.ViewerSelect`) | ||
* ``viewer_format`` (:class:`~jdaviz.core.template_mixin.SelectPluginComponent`) | ||
* ``filename`` | ||
* :meth:`export` | ||
""" | ||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#export-plot" | ||
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#export" |
This file was deleted.
Oops, something went wrong.