Skip to content

Commit

Permalink
Improve code for array containing serveral times the same value
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnefroehlich committed Aug 31, 2024
1 parent b455aab commit 86ea2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tutorials/advanced/non_ascii_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
)

fig.text(
x=[0.2, 0.2, 0.2, 0.2, 0.2],
x=[0.2] * 5,
y=[5, 4, 3, 2, 1],
text=["ASCII:", "ISOLatin1+:", "Symbol:", "ZapfDingbats:", "Mixed:"],
font="20p,Helvetica-Bold,red",
justify="LM",
)
fig.text(
x=[2, 2, 2, 2, 2],
x=[2] * 5,
y=[5, 4, 3, 2, 1],
text=[
"ABCDE12345!#$:;<=>?", # ASCII only
Expand Down

0 comments on commit 86ea2e4

Please sign in to comment.