I used some comment in below to disable the menubar in figure. Now, I want to display it again. I could not find the way to do it. Could you guide me how to show it in figure again
This is what I tried to disable menubar
iptsetpref('ImshowBorder','tight');
set(0,'DefaultFigureMenu','none');
set(0,'Default');
The default value for the option 'DefaultFigureMenu' is 'figure'. The other option, as you have noticed, is 'none', which will disable the menu bar. This and other information about figure properties may be found in the documentation.
The menu bar reappears in any new figures you open once you assign the value back to its default setting:
set(0,'DefaultFigureMenu','figure');
As a side note, setting properties with first argument 0 makes the property value changes global (i.e. they apply to every figure), at least for the duration of your current MATLAB session.
Related
Is there a way to prevent the MATLAB from creating a separate figure window, and instead show it as a tab in the editor, like the command window or workspace / variables tabs? I'd like to see the figure on the side while still writing on the full-size window. I looked into the settings and couldn't find anything related.
To do it programmatically, just set the figure's 'WindowStyle' property to 'Docked'. You can do that when you create the figure:
f = figure('WindowStyle', 'Docked');
Until Dymola 2020, now and then I used the Edit->Variables menu to set annotations. Where do I find it in the new UI in 2020x?
Edit->Variables:
I think the dialog you are referring to is available using one of two ways:
via the context menu, after a right-click. Within the "Variables" menu you will need to select the variable you want to edit from the list shown there.
If you select a variable before doing the right-click, it will be highlighted and moved to the top of the list of available variables as shown in the above screenshot.
Additionally it should be possible to access the dialog by highlighting the variable and pressing CTRL+Shift+N, but that does not work reliably for me...
Using the component browser (after enabling the "Include non-graphical" option, which is marked red) by right-clicking the variable you want to edit and then select "Variable..."
You can also find it in the GUI in the Text tab - well hidden inside the Insert button:
This is driving me mad! I love the new layout options in Word 2013, but when a callout gets to a certain size the icon for it obscures the end of the arrow, and you can't move the arrow:
Don't suppose anyone knows either how to get rid of the icon, how to click and drag on the yellow end of the arrow, or how to stop the icon appearing in the first place?
Thanks in advance.
Here are two answers that helped me. The second option gets rid of the floating Layout Options button, but at the cost of disabling some features of Word 2013.
First Option:
http://answers.microsoft.com/en-us/office/forum/office_2013_release-word/any-way-to-disable-the-layout-options-button/47f6af4a-2acd-483e-a953-6415c8530554
It might help to increase the zoom (use the slider at the right end of the status bar) while you work with the picture.
Second Option:
http://answers.microsoft.com/en-us/office/forum/office_2013_release-word/layout-options-icon-word-2013-suddenly-missing/ce304589-9db2-44c5-b1e1-8fd6596b70c4
Is the document in Compatibility Mode (shown by those words appearing in the title bar along with the document name)? If that's the case, click File and then click the Convert button. That will make the Layout Options button appear when a picture is selected, as well as turning on other features that are available only in the 2013 format. When you save, the document file will change to the .docx extension.
I know the second quote is about turning the Layout Options button on, but it works backwards, too. I saved my file as a *.doc instead of a *.docx and the floating button went away.
When you're finished editing your callouts, you can save it again as a *.docx.
One method that helped me was to flip horizontal, change the leader position, then flip back. That way the leader line is temporarily on the opposite side of the layout button, and both handles of the leader line are accessible, then can flip back. It is an extra step, but is another alternative.
In an attempt to automate this to quickly flip the object back and forth, I couldn't find a macro command to make a shortcut, or anything under Customize Ribbon with custom Keyboard Shortcuts to Flip Horizontal (MoreRotationOption opens up a dialog which does not give an option to flip).
The Flip Horizontal command could be called by pressing ALT JD (Format) AY (Rotate Objects) H (Horizontal) when the object is selected...
The best I could do was to add Rotate Objects to the Quick Access Toolbar, then the Flip Horizontal command could be called by pressing ALT # (whatever number you assign) H (Horizontal) which is three keystrokes.
I'm making a GUI using matlab GUIDE. Since GUIDE doesn't support tabs, I have a pop down menu where the user selects different options. Depending on the selected options, certain buttons appear and disappear, this is easily handled by turning the handle visibility on/off.
However, the first time I run the GUI, i can see all my buttons, even though their default handle visibility is off. The moment I select something from the pop down menu, everything is fine.
How do I make a figure invisible for the very first time the GUI is opened?
Thanks!
Try the drawnow command at the end of the initialization code of your GUI (see doc here). It should force the update of the GUI and hopefully set the visibility of your objects correctly.
I have a GUI that shells a program generating a plot as output.
Each time the user presses 'OK', a new plot is made, appearing in a new window.
What I'd like to have is the following:
User starts GUI, enters required input parameters and presses 'OK'.
A 'main' figure window opens and a plot appears as a docked figure in the main window.
User changes the settings and confirms with 'OK'.
Another docked figure showing a new plot is added to the main window.
etc.
For me it's not clear how to:
Define the main/parent figure window that will hold the generated children plot figures.
Add these plot figures to the main figure window.
If I start with:
set(0,'DefaultFigureWindowStyle','docked')
is it possible then to further customize some properties of the main window?
I think of title, position, no menubar, ...
Can anyone help me with some hints?
Thanks!
Notes:
It seems that it's not possible to dock figures in a predefined figure window; you can only dock to the desktop. That's what I understand until now since searching the internet.
Yes, you surely can customize the figure window.
You can set the title of the figure window using 'Name' property in the following way:
set(gcf,'Name','Title');
Similarly, you can use 'Menubar' property and 'Toolbar' property to control the display of the toolbar.
Also, you can set the position using 'Position' property.
Refer to the following link for all the figure properties you can set:
http://www.mathworks.com/help/techdoc/ref/figure_props.html
Hope it helps...all the best!!
Yes, Matlab does not allow to dock figures into several different windows but there is a tool on Matlab file exchange which provides that functionality:
http://www.mathworks.com/matlabcentral/fileexchange/16650