Skip to content

Commit

Permalink
fix sizetool
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Nov 6, 2023
1 parent b559c7c commit e113a1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/lsst/analysis/tools/atools/genericBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def get_attr_name(self, name_size):

def setDefaults(self):
super().setDefaults()
self.produce.legendLocation = "lower left"
self.produce.plot.legendLocation = "lower left"

def finalize(self):
super().finalize()
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/analysis/tools/atools/sizeMagnitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def finalize(self):
# TODO: Investigate why MagnitudeScatterPlot.finalize(self) is called
# always, even if super().finalize() is omitted
super().finalize()
if not self.produce.yAxisLabel:
if not self.produce.plot.yAxisLabel:
size = self.sizes[self.size_y]
self.produce.yAxisLabel = (
self.produce.plot.yAxisLabel = (
f"log10({size.name_size}/{size.unit_size})"
if size.log10_size
else f"{size.name_size} ({size.unit_size})"
Expand Down

0 comments on commit e113a1b

Please sign in to comment.