Surn commited on
Commit
1a35382
·
1 Parent(s): 10dda8b

Update radar image to have more accurate locations

Browse files
Files changed (1) hide show
  1. battlewords/ui.py +2 -0
battlewords/ui.py CHANGED
@@ -551,6 +551,8 @@ def _render_radar(puzzle: Puzzle, size: int, r_max: float = 0.8, max_frames: int
551
  # Use per-puzzle scope image keyed by puzzle.uid
552
  imgscope = get_scope_image(uid=puzzle.uid, size=scope_size, bgcolor=bgcolor, scope_color=scope_color)
553
  fig, ax = plt.subplots(figsize=(scope_size, scope_size))
 
 
554
  ax.set_position([0.02, 0.02, 0.98, 0.98])
555
  ax.set_xlim(min_x, max_x)
556
  ax.set_ylim(max_y, min_y) # Inverted for grid coordinates
 
551
  # Use per-puzzle scope image keyed by puzzle.uid
552
  imgscope = get_scope_image(uid=puzzle.uid, size=scope_size, bgcolor=bgcolor, scope_color=scope_color)
553
  fig, ax = plt.subplots(figsize=(scope_size, scope_size))
554
+ fig.subplots_adjust(left=0, right=0.9, top=0.9, bottom=0)
555
+ fig.patch.set_alpha(0.0)
556
  ax.set_position([0.02, 0.02, 0.98, 0.98])
557
  ax.set_xlim(min_x, max_x)
558
  ax.set_ylim(max_y, min_y) # Inverted for grid coordinates