Rank: 3754 based on 25 downloads (last 30 days) and 1 file submitted
photo

Joris Kampman

E-mail
Company/University
Thales NL
Lat/Long
52.248035, 6.771984

Personal Profile:

 

Watch this Author's files

 

Files Posted by Joris Kampman
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jul 2014 Screenshot subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman subplot, merge, interactive axes, legend, zoom, oop 25 22
  • 4.33333
4.3 | 6 ratings
Comments and Ratings by Joris Kampman View all
Updated File Comments Rating
03 Dec 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman

Hello everybody,

Thank you all for finding and reporting the bugs. Unfortunately I've not made the transition to version 2014 yet. However I'll get this installed shortly.

Regarding the save-figure method: I've found that there is way which allows the figure to be saved and loaded keeping all methods and properties. I've started to work on this.

I'll probably upload a new - matlab 2014 compatible - version of subplot_grid during the xmas holidays.

Kind regards

Joris

21 Aug 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman

hello Vincent,

Thank you for the feedback and nice rating.
It's funny to notice that the
thing you like about the way matlab creates legends is exactly why I dislike it.

I agree that when you change the color of a graph, the default legend will change automatically and this can surely be handy. However to me this often spells trouble and was the reason to do it differently. I therefore opted for a legend that is NOT directly coupled to the data.

I'll try to seewhat I can do,however,I seriously doubt I can do a lot since the default legend is not linked to a specific axes via a property or something.

But I'll give it a go.

Please check the updates or my comments in case it is not possible or practically feasible.

kind regards

23 Jul 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman

update:

after construction of a subplot_grid object, the current axes was not always rightly defined. This is fixed, and set to the first subplot after construction.

the use of the method set_gca is now not needed after construction (i.e., if the first subplot is the first to be used).

20 Jul 2014 freezeColors / unfreezeColors Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. Author: John Iversen

14 Jul 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman

I've fixed the bug and added the option to save as a .fig file and load without errors. It even does all things it did before. The methods can be accessed similarly.

In addition, I've made the row and columns texts to work on all 4 sides (top, bottom, left and right) and you have the possibility to position them manually. The coupling between number of subplot rows/columns and number of titles is removed.

Comments and Ratings on Joris Kampman's Files View all
Updated File Comment by Comments Rating
03 Dec 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Joris Kampman

Hello everybody,

Thank you all for finding and reporting the bugs. Unfortunately I've not made the transition to version 2014 yet. However I'll get this installed shortly.

Regarding the save-figure method: I've found that there is way which allows the figure to be saved and loaded keeping all methods and properties. I've started to work on this.

I'll probably upload a new - matlab 2014 compatible - version of subplot_grid during the xmas holidays.

Kind regards

Joris

03 Dec 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Manuel

On the other hand, I've found a new issue. The use of the colorbar method doesn't seem to be working. Every time I try to use it I get the following error:

Error using colorbar (line 55)
Attempt to reference field of non-structure array.
Error in subplot_grid/colorbar (line 2181)
hcb = colorbar('peer',this.hax(ir,ic),location);

Had the same Problem : Don't preinitialize your axes-handles with doubles like :

h = zeros(1,3);
h(1) = subplot (1,3,1);
h(2) = subplot (1,3,2);
h(3) = subplot (1,3,3);

I got the issue with colorbar in this case, here is class (h(1)) "double" but it works without preinitialization :

clear h;
% h = zeros(1,3);
h(1) = subplot (1,3,1);
h(2) = subplot (1,3,2);
h(3) = subplot (1,3,3);

here is class(h(1)) "matlab.graphics.axis.Axes" like it should be.

Strange behavior in Matlab, the type "double" will not be overwritten.

14 Nov 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Adam

Joris,
I am curious if the save_figure() feature, to enable saving and reloading to a .fig file was ever implemented, as noted in your 7/14/2014 update. I don't see the functionality in the current version of the code, and this would be very useful to me if it worked smoothly. (I get the same errors as Alex when trying to reload a saved .fig).
Great tool though!!

30 Oct 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
I'm sorry if I seem to be harping, but it looks like the set_padding method is not operational either. I don't find any reference to the loose_inset property in the reposition_content function. Is this something that you've worked on?

Thanks,
Dan

20 Oct 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
For my first item below, it can be eliminated by changing the code in the set_zoom_button_position as follows:

if verLessThan('matlab','8.4')
%DWK: Inlining the layering command provides modest speed improvement
% uistack(this.subplotzoom_data(ir,ic).zm_btn,'top');
parentObj = get(this.subplotzoom_data(ir,ic).zm_btn,'Parent');
allDescendents = get(parentObj,'Children');
% Only changing the layering if necessary makes a big difference
zmBtnIndex = find(allDescendents == this.subplotzoom_data(ir,ic).zm_btn,1);
thisAXIndex = find(allDescendents == this.hax(ir,ic),1);
if zmBtnIndex < thisAXIndex,
newOrder = [allDescendents(allDescendents~=this.subplotzoom_data(ir,ic).zm_btn);this.subplotzoom_data(ir,ic).zm_btn];
set(parentObj,'Children',newOrder);
end
end

On the other hand, I've found a new issue. The use of the colorbar method doesn't seem to be working. Every time I try to use it I get the following error:

Error using colorbar (line 55)
Attempt to reference field of non-structure array.
Error in subplot_grid/colorbar (line 2181)
hcb = colorbar('peer',this.hax(ir,ic),location);

Thanks,
Dan

Contact us