Skip to content

Commit c72282e

Browse files
committed
dc cleanup
1 parent 1e8384e commit c72282e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pychron/lasers/points/maker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def overlay(self, other_component, gc, view_bounds=None, mode="normal"):
475475
with gc:
476476
comp = self.component
477477
gc.clip_to_rect(
478-
*(int(p) for p in (comp.x, comp.y, comp.width, comp.height))
478+
*(float(p) for p in (comp.x, comp.y, comp.width, comp.height))
479479
)
480480
pos = comp.get_offset_stage_screen_position()
481481

pychron/pipeline/plot/overlays/spectrum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def overlay(self, component, gc, *args, **kw):
203203
with gc:
204204
# gc.clip_to_rect(comp.x, comp.y, comp.width, comp.height)
205205
gc.clip_to_rect(
206-
*(int(p) for p in (comp.x, comp.y, comp.width, comp.height))
206+
*(float(p) for p in (comp.x, comp.y, comp.width, comp.height))
207207
)
208208

209209
xs = comp.index.get_data()
@@ -453,7 +453,7 @@ def overlay(self, component, gc, *args, **kw):
453453
with gc:
454454
comp = self.component
455455
gc.clip_to_rect(
456-
*(int(p) for p in (comp.x, comp.y, comp.width, comp.height))
456+
*(float(p) for p in (comp.x, comp.y, comp.width, comp.height))
457457
)
458458

459459
# gc.clip_to_rect(comp.x, comp.y, comp.width, comp.height)

0 commit comments

Comments
 (0)