I tried this:
using Images, Unitful, AxisArrays
using Unitful: mm, s
img = AxisArray(rand(256, 256, 100, 50), (:x, :y, :z, :time), (0.4mm, 0.4mm, 1mm, 2s))
imshow(img)
I am getting this error:
(julia:14656): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion ‘width >= 0’ failed
(julia:14656): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 32765
(julia:14656): Gtk-CRITICAL **: gtk_render_frame_gap: assertion ‘xy0_gap <= xy1_gap’ failed
(julia:14656): Gtk-CRITICAL **: gtk_render_frame_gap: assertion ‘xy0_gap <= xy1_gap’ failed
(julia:14656): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion ‘width >= 0’ failed
(julia:14656): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 32765
(julia:14656): Gtk-CRITICAL **: gtk_render_frame_gap: assertion ‘xy0_gap <= xy1_gap’ failed
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on ‘_pixman_log_error’ to debug
(julia:14656): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion ‘width >= 0’ failed
(julia:14656): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 32765
(julia:14656): Gtk-CRITICAL **: gtk_render_frame_gap: assertion ‘xy0_gap <= xy1_gap’ failed
(julia:14656): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion ‘width >= 0’ failed
(julia:14656): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 32765
(julia:14656): Gtk-CRITICAL **: gtk_render_frame_gap: assertion ‘xy0_gap <= xy1_gap’ failed