I want to design a function, which can add text in the right corner of the figure according to user's input parameter ('UpperLeft', 'UpperRight', 'LowerLeft', 'LowerRight'). I implement it in the following way: If I want to add text in the upper left corner, I firstly get the min x and max y of the axis in the figure, then use text(min_x, max_y, 'text')
to draw it. But I don't know what function can get the min x and max y. And if there any other way to implement the function I want?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.