Skip to content

Commit

Permalink
support import of skyproj plotters directly from maf and its plot sub…
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
ehneilsen committed Apr 3, 2024
1 parent ca5e92d commit d5c04dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions rubin_sim/maf/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .oned_plotters import *
from .perceptual_rainbow import *
from .plot_handler import *
from .skyproj_plotters import *
from .spatial_plotters import *
from .special_plotters import *
from .two_d_plotters import *
Expand Down
3 changes: 1 addition & 2 deletions rubin_sim/maf/plots/skyproj_plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def __call__(self, metric_values, slicer, user_plot_dict, fig=None):
self._initialize_plot_dict(user_plot_dict)
self._prepare_skyproj(fig)
self.draw(metric_values, slicer)
self.decorate()

# Do not show axis labels unless they are specified as decorators.
if "xlabel" not in self.plot_dict["decorations"]:
Expand All @@ -327,8 +328,6 @@ def __call__(self, metric_values, slicer, user_plot_dict, fig=None):
if "ylabel" not in self.plot_dict["decorations"]:
self.skyproj.set_ylabel("", visible=False)

self.decorate()

if self.plot_dict["label"] is not None:
label_kwargs = {}
if "fontsize" in self.plot_dict:
Expand Down

0 comments on commit d5c04dc

Please sign in to comment.