Ask Your Question
1

Normalized coordinates for plots/graphics?

asked 2014-12-29 15:46:33 +0200

bitfix gravatar image

Is it possible to use normalized (unit) coordinates for graphics?

I would like to position a text label below the x-axis of a plot. Something like this:

po = plot(...)
po += text( (r'$mylabel$', (.5, -.1))

Where (.5, -.1) are coordinates relative to the bounding box of the plot with the extends (0..1,0..1). So yes, this is a very simple coordinate transformation. Do I have to do it by hand? And if so, how do I get the actual bounding box of the plot?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-12-29 16:58:17 +0200

FrédéricC gravatar image

Maybe

po.get_minmax_data()
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

Stats

Asked: 2014-12-29 15:46:33 +0200

Seen: 418 times

Last updated: Dec 29 '14