Skip to content

Commit

Permalink
Merge pull request #39 from lesamouraipourpre/remove-max-glyphs
Browse files Browse the repository at this point in the history
Remove usage of max_glyphs with Label
  • Loading branch information
tannewt authored Jul 22, 2021
2 parents c6ea5d1 + eab3333 commit 99bf9e7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/display_shapes_sparkline_triple.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,14 @@
)

# Initialize the y-axis labels for mySparkline3 with no text
text_label3a = label.Label(
font=font, text="", color=0x11FF44, max_glyphs=20
) # y_top label
text_label3a = label.Label(font=font, text="", color=0x11FF44) # y_top label
text_label3a.anchor_point = (0, 0.5) # set the anchorpoint
text_label3a.anchored_position = (
sparkline3.width,
120,
) # set the text anchored position to the upper right of the graph

text_label3b = label.Label(
font=font, text="", color=0x11FF44, max_glyphs=20
) # y_bottom label
text_label3b = label.Label(font=font, text="", color=0x11FF44) # y_bottom label
text_label3b.anchor_point = (0, 0.5) # set the anchorpoint
text_label3b.anchored_position = (
sparkline3.width,
Expand Down

0 comments on commit 99bf9e7

Please sign in to comment.