How to plot next to each other and in rows small matrices as images (greyscale)

Hi guys, my question is: how to plot next to each other and in rows small matrices as images (greyscale)?

Thank you very much in advance for your support.



If all images are the same size you can use hcat/vcat/hvcat to make one giant image. A more flexible approach, if you’re only interested in display, is to use ImageView.imshow_gui:

1 Like

@tim.holy Hi Tim and thank you very much for your help. I have one more question thou: Is it possible to control the size of the matrix/image when they are displayed? This is because my matrix/image are 28x28 pixels and should be very small and I would like to increase their size without changing them.

Thank you very much again for your support.



Just supply a canvassize:

help?> imshow_gui
search: imshow_gui

  guidict = imshow_gui(canvassize, gridsize=(1,1); name="ImageView", aspect=:auto, slicedata=SliceData{false}())

  Create an image-viewer GUI. By default creates a single canvas, but with
  custom gridsize = (nx, ny) you can create a grid of canvases. canvassize =
  (szx, szy) describes the desired size of the (or each) canvas.

  Optionally provide a name for the window. aspect should be :auto or :none,
  with the former preserving the pixel aspect ratio as the window is resized.
  slicedata is an object created by roi that encodes the necessary information
  for creating player widgets for viewing multidimensional images.

If you resize the window the individual canveses will resize to match.

@tim.holy thank you very much Tim. Cheers. Ergnoor