I've uploaded a newer version (internal version 4.4). I've been able to fix the bugs found, except the problem with PLOTYY which uses two overlaying transparent axes. This is quite horrible for the script, so I really have to think about this, and for sure this will have a BIG impact on the function.
The addition of a COLORBAR was done and a method SET_PADDING to control the padding between axes.
However, a combination of all possible actions was not done, so please keep me informed on found errors/bugs
Thanks for the nice comment. Regarding your points:
1. I've thought about an output for set_gca, however after this method, you can use 'gca' if necessary, or just add titles and such. For instance, I always use: set_gca(x,y);title(...);set(gca,'',''),...
If you just need any handle, you can use the property 'hax', which contains all axes. for instance <class>.hax(2,3) outputs the axes handle for the subplot in row 2, column 3.
2. I'll add a property to control the whitespace; no problem.
3. Oef, I've just seen the shit occurring when using plotyy (which obviously, I myself rarely use). I'll have to investigate a bit what to do about this.
Please keep me informed on any other bugs/improvements
Here's a thought for you: Have you considered setting it up so that the grid can live inside some other parent besides its own figure? I'm setting up a GUI, and I'd like to consider putting a grid inside a uipanel.... Thoughts?
Sorry about that last. Hit return by mistake. Joris, I've run into an issue using subplot_grid, which may be fairly unique, but I thought I would mention it. In order to save figures and be able to change them later, I'm using setappdata to copy the subplot_grid object into the figure's appdata. However, this has an interesting consequence: After I've cleared the figure, the object which is saved in the application data is still listening for callbacks, such as resize, and throwing an error:
Cell contents reference from a non-cell array object.
Error in cell2mat (line 43)
cellclass = class(c{1});
Error in subplot_grid/reset_handles (line 3279)
positions = cell2mat(get(haxs(:),'OuterPosition'));
Error in subplot_grid/subplot_resize_fcn (line 2153)
this.reset_handles;
Error in subplot_grid>@(src,evt)this.subplot_resize_fcn (line 429)
set(this.hfig,'ResizeFcn',@(src,evt)this.subplot_resize_fcn);
I'm looking for a place where I can test to check if the object is still referring to a valid grid, and abort. An alternative would be to find a way to clear out the appdata on a clf. If you have any suggestions, I'd appreciate it.
The demo really shows what this can do. However, it doesn't show how to do it. I would probably increase my rating to a 5star if there were examples to go along with the function.
Joris,
Again, I applaud your good work. This has rapidly become one of my favorite FEX functions.
Another items to think about adding when you get around to it:
I would find it useful to be able to create a shared xlabel (much like the coltitle method) only at the bottom of the figure.
I've uploaded a newer version (internal version 4.4). I've been able to fix the bugs found, except the problem with PLOTYY which uses two overlaying transparent axes. This is quite horrible for the script, so I really have to think about this, and for sure this will have a BIG impact on the function.
The addition of a COLORBAR was done and a method SET_PADDING to control the padding between axes.
However, a combination of all possible actions was not done, so please keep me informed on found errors/bugs
Joris,
Here's a thought for you: Have you considered setting it up so that the grid can live inside some other parent besides its own figure? I'm setting up a GUI, and I'd like to consider putting a grid inside a uipanel.... Thoughts?
Comment only
25 May 2012
subplot_grid
A subplot figure with a lot of fancy features
Sorry about that last. Hit return by mistake. Joris, I've run into an issue using subplot_grid, which may be fairly unique, but I thought I would mention it. In order to save figures and be able to change them later, I'm using setappdata to copy the subplot_grid object into the figure's appdata. However, this has an interesting consequence: After I've cleared the figure, the object which is saved in the application data is still listening for callbacks, such as resize, and throwing an error:
Cell contents reference from a non-cell array object.
Error in cell2mat (line 43)
cellclass = class(c{1});
Error in subplot_grid/reset_handles (line 3279)
positions = cell2mat(get(haxs(:),'OuterPosition'));
Error in subplot_grid/subplot_resize_fcn (line 2153)
this.reset_handles;
Error in subplot_grid>@(src,evt)this.subplot_resize_fcn (line 429)
set(this.hfig,'ResizeFcn',@(src,evt)this.subplot_resize_fcn);
I'm looking for a place where I can test to check if the object is still referring to a valid grid, and abort. An alternative would be to find a way to clear out the appdata on a clf. If you have any suggestions, I'd appreciate it.
Thanks,
Dan
Comment only
25 Apr 2012
subplot_grid
A subplot figure with a lot of fancy features
The demo really shows what this can do. However, it doesn't show how to do it. I would probably increase my rating to a 5star if there were examples to go along with the function.
3
16 Apr 2012
subplot_grid
A subplot figure with a lot of fancy features
Joris,
Again, I applaud your good work. This has rapidly become one of my favorite FEX functions.
Another items to think about adding when you get around to it:
I would find it useful to be able to create a shared xlabel (much like the coltitle method) only at the bottom of the figure.
Comment only
02 Mar 2012
subplot_grid
A subplot figure with a lot of fancy features
I've uploaded a newer version (internal version 4.4). I've been able to fix the bugs found, except the problem with PLOTYY which uses two overlaying transparent axes. This is quite horrible for the script, so I really have to think about this, and for sure this will have a BIG impact on the function.
The addition of a COLORBAR was done and a method SET_PADDING to control the padding between axes.
However, a combination of all possible actions was not done, so please keep me informed on found errors/bugs
Comment only