Ask Your Question
0

Coordinate for legend_label

asked 2020-09-21 23:53:47 +0100

Cyrille gravatar image

updated 2020-09-22 10:18:36 +0100

eric_g gravatar image

Can we chose the coordinate of the legend_ label in

g = plot((3/2) - (1/2)*x, (x, 0, 5),thickness=1.5, color="#4b59ea",legend_label='$\\frac{3}{2} - \\frac{1}{2}x$')
g+= plot((11/2) - 2*x, (x, 0, 5),thickness=1.5, color="#e52411",legend_label='$\\frac{11}{2} - 2x$')
g+= plot(-1 + x, (x, 0, 5),thickness=1.5, color="#2ea012",legend_label='$-1 + x$')
g.axes_labels(['$x_1$','$x_2$'])
show(g)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-09-22 10:18:25 +0100

eric_g gravatar image

Yes, use

g.set_legend_options(loc=(0.5, 0))

See g.set_legend_options? for details.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-09-21 23:53:47 +0100

Seen: 669 times

Last updated: Sep 22 '20