sv.plot_image using inches?!? #1423
AlainPilon
started this conversation in
General
Replies: 2 comments 1 reply
-
It indeed is a thin wrapper around I'll push a fix to clarify the docs, and add this to the list of smaller issues to look at in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. I had my working window rendering the picture ALMOST the same size as the original and it took me way too much time figuring out why my annotations didnt line up. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just realized
plot_image
size
argument uses inches, with a default or 12x12.Other than making it easy to pass it to the underlying
math.pyplot.figure
, is there a specific reason to use inches? This is highly impractical for anyone working in a Jupyter notebook as the image resizes based on the window size.My suggestion would be to use a pixel based size with a default value using the original image size.
If for some reason we need to keep the size in inches (!), at least update the doc to replace:
with
Beta Was this translation helpful? Give feedback.
All reactions