Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usage of max_glyphs with Label #39

Merged
merged 1 commit into from
Jul 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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