Skip to content

Commit

Permalink
Use ax.set_xlabel for skyproj
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Jan 30, 2025
1 parent 66e97cb commit 01322f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rubin_sim/maf/plots/skyproj_plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ def __call__(self, metric_values, slicer, user_plot_dict, fig=None):
# or specified as decorators.
if self.plot_dict["xlabel"] is None:
if "xlabel" not in self.plot_dict["decorations"]:
self.skyproj.set_xlabel("", visible=False)
self.skyproj.ax.set_xlabel("", visible=False)
else:
self.skyproj.set_xlabel(self.plot_dict["xlabel"])
self.skyproj.ax.set_xlabel(self.plot_dict["xlabel"])

if self.plot_dict["ylabel"] is None:
if "ylabel" not in self.plot_dict["decorations"]:
self.skyproj.set_ylabel("", visible=False)
self.skyproj.ax.set_ylabel("", visible=False)
else:
self.skyproj.set_ylabel(self.plot_dict["ylabel"])
self.skyproj.ax.set_ylabel(self.plot_dict["ylabel"])

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

0 comments on commit 01322f1

Please sign in to comment.