Skip to content

Commit

Permalink
Decode instead of encode bytes into ascii in GkiMpl
Browse files Browse the repository at this point in the history
  • Loading branch information
olebole committed Nov 2, 2021
1 parent 08a8814 commit 560869f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyraf/GkiMpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def gki_text(self, arg):
# add the text
x = gki.ndc(arg[0])
y = gki.ndc(arg[1])
text = arg[3:].astype(numpy.int8).tobytes().encode('ascii')
text = arg[3:].astype(numpy.int8).tobytes().decode('ascii')
ta = self.textAttributes

# For now, force this to be non-bold for decent looking plots. It
Expand Down

0 comments on commit 560869f

Please sign in to comment.