Skip to content

Plot size (Figure size) #956

Answered by knutfrode
bilgetutak asked this question in Q&A
Aug 24, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

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?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bilgetutak
Comment options

Answer selected by bilgetutak
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants