Rank: 352 based on 247 downloads (last 30 days) and 14 files submitted
photo

Ben Mitch

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 May 2013 Screenshot Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch specialized, plotting, panel, subplot, pane, multipane 102 132
  • 4.75758
4.8 | 38 ratings
05 Dec 2011 datastore A tool for persisting data associated with the logged in user across sessions of Matlab. Author: Ben Mitch utility, persistent, session, data, session data 11 0
20 Dec 2010 Screenshot matml Convert between matlab variables and MatML (XML) files Author: Ben Mitch data import, data export, xml matlab variable p..., xml convert, xml to matlab, matlab to xml 8 0
22 Nov 2010 priority Change the priority of the MATLAB Process programatically. Author: Ben Mitch development environme..., change, base, priority, process, utilities 12 12
  • 4.8
4.8 | 5 ratings
22 Nov 2010 textfile Provides a one-call interface to read/write flat text files or line-based text files. Author: Ben Mitch file, text file, read, write 7 2
Comments and Ratings by Ben View all
Updated File Comments Rating
02 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

If a function does not return a handle, you can usually recover it by walking the figure tree - start with get(gcf, 'children'), and work from there. Not elegant, but...

01 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Oh, and brilliant. I've come a cropper by this website's daft bug of eating your 1st post if you post twice. Again. I wish they'd fix that.

I'll not post it all again, the essence of it was:

1) I could imagine adding a flag to panel so that it would respect the existing layout of some set of select()ed objects, and reflect it when it does layout. However, I'd implement it by creating child panels with absolute positioning, so...

2) Why is what you are wanting to do difficult to do using absolute positioning, applied manually, thus?

% axis handles from toolbox X
h1 = ...; h2 = ...;

% pack into a panel
p.pack({[0 0 1 0.45], [0 0.55 1 0.45]};
p(1).select(h1);
p(2).select(h2);

Cheers

01 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Oh, it just strikes me, this isn't a misunderstanding is it? I mean, obviously panel lives and breathes "non-overlapping". This situation is different, right? Sorry, just realised that I can read your original post in more than one way.

Cheers

30 Apr 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Hi - as often happens, the site has stopped sending me notifys when people comment, so I've not seen these comments, sorry. Thankyou for the nice feedback.

@Ian - If they are non-overlapping, I suggest you use absolute positioning instead, see demopanel6. Is that what you need?

Cheers

05 Dec 2013 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Hi Joel, thanks for the comments.

In answer, I don't generally use panel like that (rather, I mod the script and run it from scratch again), but it can be done if you prefer messing around at the command line. As I say, this is relatively untested because I don't use it, so ymmv.

I think if you delete a child panel, everything behaves, and you can call delete on an array of panels. So, in your example, try:

delete(p(1).children); % p(1).reset()
p(1).pack(2, 2);

cheers

Comments and Ratings on Ben's Files View all
Updated File Comment by Comments Rating
19 Aug 2014 rgb.m Convert colour names (blue,teal,pale green) into RGB triplets. Author: Ben Mitch Greene, Chad

By coincidence, this function works with the rgbmap function described here: http://www.mathworks.com/matlabcentral/fileexchange/46874-rgbmap-color-maps/content/rgbmapdemo/html/rgbmap_demo.html

10 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch Dey, Gautam

02 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch Mitch, Ben

If a function does not return a handle, you can usually recover it by walking the figure tree - start with get(gcf, 'children'), and work from there. Not elegant, but...

02 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch Ian

Thanks for the ideas Ben, not all the functions return handles :-(, but for those that do your idea is that I let the external function create the axes "free", then set up my panels, then use .select(axis_handle) to capture the axis into the correct panel -- I hadn't thought of it that way as I normally always select() before I plot. Will give this a go when I get time. Thanks again for a such a useful utility!!!

p.s. and yes the various website bugs on FEX are annoying, I normally copy my text before submitting just in case here...

01 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch Mitch, Ben

Oh, and brilliant. I've come a cropper by this website's daft bug of eating your 1st post if you post twice. Again. I wish they'd fix that.

I'll not post it all again, the essence of it was:

1) I could imagine adding a flag to panel so that it would respect the existing layout of some set of select()ed objects, and reflect it when it does layout. However, I'd implement it by creating child panels with absolute positioning, so...

2) Why is what you are wanting to do difficult to do using absolute positioning, applied manually, thus?

% axis handles from toolbox X
h1 = ...; h2 = ...;

% pack into a panel
p.pack({[0 0 1 0.45], [0 0.55 1 0.45]};
p(1).select(h1);
p(2).select(h2);

Cheers

Contact us