MATLAB: Images as bar x-values

barx-asis

Hi, I was wondering if it is possible to include the actual images as x-values. So instead of image names, put the actual images. Has anyone done that before?

Best Answer

You can use the axes InnerPosition and OuterPosition to control where the box goes relative to the area allocated to the axes.
Then set the axes Clipping property to 'off'
Then you can call image() with specific XData and YData coordinates to put the images up on the screen. XData and YData must be in data coordinates. I am not certain, but I estimate that the bars run from K - 0.4 to K + 0.4 for integer K. Perhaps it is +/- 0.45 .