First time here? Check out the FAQ!

Ask Your Question
0

Coordinate for legend_label

asked 4 years ago

Cyrille gravatar image

updated 4 years ago

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)
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

eric_g gravatar image

Yes, use

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

See g.set_legend_options? for details.

Preview: (hide)
link

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: 4 years ago

Seen: 823 times

Last updated: Sep 22 '20