@@ -346,7 +346,7 @@ def _make_tg_grid(self):
346346 tg_bottom_line .x = tg_plot_grid .x
347347 tg_bottom_line .y = tg_plot_grid .y + grid_height
348348
349- g_plot_grid = displayio .Group (max_size = 3 )
349+ g_plot_grid = displayio .Group ()
350350 g_plot_grid .append (tg_plot_grid )
351351 g_plot_grid .append (tg_right_line )
352352 g_plot_grid .append (tg_bottom_line )
@@ -358,7 +358,6 @@ def _make_empty_graph(self, tg_and_plot=None):
358358
359359 self ._displayio_title = Label (self ._font ,
360360 text = self ._title ,
361- max_glyphs = self ._max_title_len ,
362361 scale = 2 ,
363362 line_spacing = 1 ,
364363 color = self ._y_lab_color )
@@ -367,7 +366,6 @@ def _make_empty_graph(self, tg_and_plot=None):
367366
368367 self ._displayio_y_axis_lab = Label (self ._font ,
369368 text = self ._y_axis_lab ,
370- max_glyphs = self ._y_lab_width ,
371369 line_spacing = 1 ,
372370 color = self ._y_lab_color )
373371 self ._displayio_y_axis_lab .x = 0 # 0 works here because text is ""
@@ -378,7 +376,6 @@ def _make_empty_graph(self, tg_and_plot=None):
378376 for y_div in range (self ._y_divs + 1 ):
379377 plot_y_labels .append (Label (self ._font ,
380378 text = " " * self ._y_lab_width ,
381- max_glyphs = self ._y_lab_width ,
382379 line_spacing = 1 ,
383380 color = self ._y_lab_color ))
384381 plot_y_labels [- 1 ].x = (self ._screen_width - self ._plot_width
@@ -388,7 +385,7 @@ def _make_empty_graph(self, tg_and_plot=None):
388385 self ._displayio_y_labs = plot_y_labels
389386
390387 # Three items (grid, axis label, title) plus the y tick labels
391- g_background = displayio .Group (max_size = 3 + len ( plot_y_labels ) )
388+ g_background = displayio .Group ()
392389 g_background .append (self ._make_tg_grid ())
393390 for label in self ._displayio_y_labs :
394391 g_background .append (label )
@@ -404,7 +401,7 @@ def _make_empty_graph(self, tg_and_plot=None):
404401
405402 # Create the main Group for display with one spare slot for
406403 # popup informational text
407- main_group = displayio .Group (max_size = 3 )
404+ main_group = displayio .Group ()
408405 main_group .append (g_background )
409406 main_group .append (tg_plot )
410407 self ._displayio_info = None
0 commit comments