Skip to content

Commit

Permalink
self.display needs to be used to extra width/height in constructor. p…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin J Walters committed Jan 6, 2021
1 parent 00e1590 commit f9bb309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/pimoroni_envirowing/screen/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def __init__(self, colours, bg_colour=None, max_value=None, min_value=None,

self.num_colours = len(colours) + 1

plot_width = display.width if width is None else width
plot_height = display.height if height is None else height
plot_width = self.display.width if width is None else width
plot_height = self.display.height if height is None else height
if top_space:
self.bitmap = displayio.Bitmap(plot_width, plot_height - top_space,
self.num_colours)
Expand Down

0 comments on commit f9bb309

Please sign in to comment.