Have Matlab figures docked by default - matlab

In Matlab, it is possible to have figure windows docked in the main window. If there are several figures, each of them appears in a different "tab".
Is it possible to set up the system so that all figure windows will be created docked by default?

To dock figures by default, try calling:
set(0,'DefaultFigureWindowStyle','docked')
at the beginning

The point 'n' click alternative:
Click Desktop -> Figures.
Click the arrow underneath the cross in the top-right (tooltip is 'Dock Figures').
Save your desktop layout with Desktop -> Save Layout...

Related

VSCode: Not enough space to split terminal

In Visual Studio Code, there is a thing similar to command prompt in windows. It is called Terminal. In the past, I normally opened more than 3 tabs of this Terminal. However, in recent updates it displays this error when I try to open more than 3 tabs.
Not enough space to split terminal.
Is there a solution or a workaround for this?
Workaround:
Menu: View -> Appearance -> Toggle Panel Position (it moves terminals to the bottom) or right-click the "TERMINAL" or other tab and select "Move Panel to Bottom".
You can now open an additional terminal (or more) and then use the same menu option to move them back to the right and it will keep the additional terminals open.
There is a workaround - at least when You're using Ubuntu. You just have to unmaximize the window and resize it to make it bigger then Your screen size. Then You can split the terminal and can freely go back to initial window size.
Unfortunately, as far as I know, Windows won't allow You to have a window bigger that Your screen size. I don't know about Mac though.

Netbeans Project Panel toggle

Is there any keyboard short cut in netbeans for toggling between project panel.
For example if I'm working on a laptop and sometime I need for space for see the code window and always I have to click on the project's panel to hide it.
Is there any way I can quickly hide and show that left side thing?
You can use Shift + ESCAPE to maximize the current window (e.g. the code editor).
Alternatively, right click on the editor's tab for the current file and choose "Maximize"
you can use shift+esc to hide or show your project panel.

How to dock multiple plots/images in main figure window?

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

Changing number of rows of tabs visible in NetBeans

There are times when I have a decent number of source files open at once. Is there a way to change the number of rows of tabs that are visible while working in NetBeans?
Also, I have a dual monitor setup here. I could span NetBeans across the two monitors if it were possible to have multiple NetBeans editor windows open at the same time. This is something that I use in the VS Express editions. I tend to group my source files on one monitor and the designer windows in the other. Can I do this in NetBeans?
for versions 8.0.2+:
Tools -> Options -> Appearance -> Document Tabs -> Multi-row tabs
You can also maximum row count if you wish (the default is 3).
There are 2 way's I have done this:
Drag a tab from the editor panel to the side of the editor window until the red outline shows a rectangle running from top to bottom. Drop the tab there and you get another editor pane. Opening from Project or Files will still use the original panel, but you can drag tabs between the panels.
Right click on a tab and choose "Undock Window". This will create a top-level window independent of the main NB window.
When you create files with keyboard shortcuts (eg, Ctrl-N for new file) they will open in the current panel. Likewise, navigating to other files (eg, Ctrl-Shift-B for go to source).
It's not perfect though. Some keyboard actions will dump you back to the main window, then it's Alt-Tab or fiddle with the mouse to get back.
You can control the number of rows of Tabs in Netbeans by going to (on Windows):
Tools>Options>Miscellaneous>Windows> check the multi-row tabs checkbox.
See the maximum row count with the radio button and set your number.

How to set the editor window tab width in eclipse? (not whitespaces)

I wondered if it's possible to set the editor windows tab width in eclipse.
I hate it when I want to close several windows in a row and I always have to move the mouse. Can I set eclipse to use only ONE width for every window tab?
I don't think it is possible to do that. Why not use the keyboard shortcut instead?
You didn't specify platform, but on Windows the shortcut is Ctrl-W. That way, you don't have to move your mouse.