axis_extent¶
- screens.visualization.axis_extent(*args)[source] [edit on github]¶
Treat the arguments as axis arrays of an image, and get their extent.
Just the first and last element of each array, but properly taking into account that the limits of the image are half a pixel before and after.
- Parameters:
- argsarray
Arrays with coordinates of the images. Assumed to be contiguous, and have only one dimension with non-unity shape.
- Returns:
- extentlist of int
Suitable for passing into matplotlib’s
imshow.