Plot size (Figure size) #956
-
Hi All,
then obtain the current figure using
Then finally set the width and height through
Is there a better solution for the figure size setting. If not, maybe it can be implemented in the plot or set_up_map function parameters (I can implement)? What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, The aspect ratio is calculated automatically from actual extent in If this automatic aspect ratio is not used, your figure will become distorted. However, the size of 11 inches could in principle be made an input parameter, if that would help in your case? |
Beta Was this translation helpful? Give feedback.
-
I now added Default is 11 inches as before. |
Beta Was this translation helpful? Give feedback.
Hi,
The aspect ratio is calculated automatically from actual extent in
set_up_map
,and figure size is the automatically 11 inches along the longest axis, and 11 inches * aspect_ratio along the shortest axis:
https://github.com/OpenDrift/opendrift/blob/master/opendrift/models/basemodel.py#L3238
If this automatic aspect ratio is not used, your figure will become distorted. However, the size of 11 inches could in principle be made an input parameter, if that would help in your case?