Skip to content

Commit

Permalink
addressed issue #2224
Browse files Browse the repository at this point in the history
  • Loading branch information
jirhiker committed Jul 28, 2023
1 parent 371db68 commit df91d75
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pychron/graph/ml_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _draw_title(self, gc, label=None, axis_offset=None):

# get the _rotated_ bounding box of the label
tl_bounds = array(title_label.get_bounding_box(gc), float64)
print("tlasd", tl_bounds)
# print("tlasd", tl_bounds)
text_center_to_corner = -tl_bounds / 2.0
# which axis are we moving away from the axis line along?
axis_index = self._major_axis.argmin()
Expand Down
4 changes: 2 additions & 2 deletions pychron/pipeline/plot/editors/figure_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _component_factory(self):
self.plotter_options.get_page_margins()
)
size = self.plotter_options.get_page_size()
print("asdfasdfasd", size)
# print("asdfasdfasd", size)
if size is not None:
width, height = size
self.figure_container.component.bounds = [width, height]
Expand All @@ -115,7 +115,7 @@ def _figure_model_factory(self):
model = self.figure_model_klass()
self.figure_model = model

print("selfasd", self, self.figure_model)
# print("selfasd", self, self.figure_model)
model.trait_set(
plot_options=self.plotter_options,
# analysis_groups=self.analysis_groups,
Expand Down
18 changes: 10 additions & 8 deletions pychron/pipeline/plot/plotter/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,16 @@ def _plot_age_spectrum(self, po, plot, pid):
ag.plateau_gas_fraction = opt.pc_gas_fraction
ag.age_error_kind = opt.weighted_age_error_kind
ag.integrated_age_weighting = opt.integrated_age_weighting
if not ag.calculate_fixed_plateau:
ag.fixed_step_low, ag.fixed_step_high = ("", "")
else:
if grp.calculate_fixed_plateau:
ag.fixed_step_low, ag.fixed_step_high = (
grp.calculate_fixed_plateau_start,
grp.calculate_fixed_plateau_end,
)

if grp.calculate_fixed_plateau:
ag.fixed_step_low, ag.fixed_step_high = (
grp.calculate_fixed_plateau_start,
grp.calculate_fixed_plateau_end,
)

# if not ag.calculate_fixed_plateau:
# ag.fixed_step_low, ag.fixed_step_high = ("", "")

ag.dirty = True

pma = None
Expand Down

0 comments on commit df91d75

Please sign in to comment.