@empet Excellent, thank you very much! strangely this solution results in my color bar being twice as large (with respect to height) as my fig (irrespective of if i do y//2 or not). Is imshow autoscaling my fig size according to the fig x-axis, which is larger than the y-axis, do you know?