Skip to content

Commit

Permalink
style: improve readability of full plot example
Browse files Browse the repository at this point in the history
Signed-off-by: Sietze van Buuren <[email protected]>
  • Loading branch information
swvanbuuren committed Nov 9, 2024
1 parent fb72583 commit 7ff201a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions examples/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,20 @@ def main():
axis.grid = True
axis.xlabel = 'x'
axis.ylabel = 'y'
axis.xticks = ((0.0, '0'),
(np.pi/2.0, 'π/2'),
(np.pi, 'π'),
(1.5*np.pi, '3π/2'),
(2.0*np.pi, '2π'),)
axis.add_legend('y=cos(x)', 'y=sin(x)', 'y=sin(x+π)', 'y=cos(x+π)', 'y=cos(x)/2')
axis.xticks = (
(0.0, '0'),
(np.pi/2.0, 'π/2'),
(np.pi, 'π'),
(1.5*np.pi, '3π/2'),
(2.0*np.pi, '2π'),
)
axis.add_legend(
'y=cos(x)',
'y=sin(x)',
'y=sin(x+π)',
'y=cos(x+π)',
'y=cos(x)/2',
)


if __name__ == '__main__':
Expand Down

0 comments on commit 7ff201a

Please sign in to comment.