Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOM component plots and MATLAB 2014b: subplot spacing after resizing figure #3

Open
willfurnass opened this issue Nov 6, 2014 · 1 comment

Comments

@willfurnass
Copy link
Contributor

In MATLAB 2014a component plane subplots are resized when the figure window is resized. This does not happen on 2014b: the subplot spacing increases when one maximises the figure windows but the subplot size does not (which can make the subplots very difficult to interpret if one is trying to view a large number of component planes).

A workaround is to specify a large figure size when the figure is created:

    if strcmp(version('-release'), '2014b')
        % A bug in the SOM toolbox prevents subplots from
        % dynamically resizing when the window size is increased
        % so create a maximised figure by default
        figure('units', 'normalized', 'outerposition', [0 0 1 1]);
    else
        figure();
@tvatanen
Copy link
Collaborator

tvatanen commented Nov 6, 2014

Hi Will, thanks for providing these fixes for SOMToolbox. As I am no longer actively using SOM Toolbox (and either is Ilari I think), can you please send pull requests for your bugfixes and I'll approve them. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants