Skip to content

Commit

Permalink
fix reference to icon file
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
JarbasAl authored May 29, 2024
1 parent a263a0a commit c9fcdae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def idle(self, message):
def generate_map(self, lat, lon):
lat = float(lat)
lon = float(lon)
icon = join(dirname(__file__), self.settings["iss_icon"])
output = join(tempfile.gettempdir(), "iss.jpg")
lat_0 = None
lon_0 = None
Expand All @@ -114,7 +113,7 @@ def generate_map(self, lat, lon):
m.bluemarble()
x, y = m(lon, lat)

iss = plt.imread(icon)
iss = plt.imread(self.settings["iss_icon"])
im = OffsetImage(iss, zoom=self.settings["iss_size"])
ab = AnnotationBbox(im, (x, y), xycoords='data', frameon=False)

Expand Down

0 comments on commit c9fcdae

Please sign in to comment.