Ask Your Question
1

Normalized coordinates for plots/graphics?

asked 10 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

FrédéricC gravatar image

Maybe

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

Stats

Asked: 10 years ago

Seen: 504 times

Last updated: Dec 29 '14