matlab - Custom toolbar disappears with call to imshow -


To create a simple GUI script in Matlab to show a series of images, with a toolbar to provide basic functionality Trying for the current image but I have seen that the toolbar disappears in a custom window window to call "Improve" to call. How can any idea change behavior so that the toolbars remain? Or does the "imshov" call have no effect?

The relevant code is:

 % create a viewer window win_viewer = figure number, 'sample', ... ' 'No', 'resize', 'off', 'color', 'no' ... [0 0 0]); Gui_toolbar = uitoolbar ('parent', win-viewer); % Add button icon = load ('icons.mat'); Gui_save = uipushtool ('parent', gui_toolbar, 'cdata', icons.disk {1}, ... 'clicked callback', {@cb_saveImage}, 'tooltipstring', ... 'save movie'); Make% axes win_axes = axes ('parent', win_viewer); Closed axis; It is sometimes called% (IM, 'parent', Y-file, 'border', 'tight'); Imshow (im, 'parent', win_axes, 'border', 'tight');  

By the "imshow" call, the toolbar appears and works as expected, but once the image is displayed, the toolbar disappears.

Edit: I played a little bit with it, and this is only the call after "imshov" toolbar a bit I update the code for

Try setting up of the toolbar .


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -