-
-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Milestone
Description
Currently, the default behavior for Image is to apply bounds of +-0.5 to both axes. If the original data is not square shaped, the result is a distorted image, as shown below:
%%opts Image (cmap="gray") [aspect='equal']
import holoviews as hv
from scipy import misc
face = misc.face(gray=True)
hv.Image(face)The original image was 1024x768, but is now shown squashed. When no bounds are specified, the bounds should be set so that the data's original aspect ratio is preserved, e.g. something like this:
- Set bounds on x axis to -0.5 and +0.5
- Set bounds on y axis to -a and +a, where a=data.shape[1]/data.shape[0]*0.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
