I love this library; this makes testing in MATLAB nearly painless.
I've found one small bug in how error messages are handled in version 2.0.1 -- if your data contains characters which are meaningful to sprintf (backslashes in a Windows path, for example), the message is truncated and you get warnings about invalid escape sequences. Adding the following line to the end of comparisonMessage.m will insert the necessary escapes in the error message:
Hi Max - margins are respected between panels within their parent and between the root panel and the edges of the canvas (figure or image file) - see doc panel/margin.
Hence, if you set a zero margin for "p", you'll see your child axes butt right up against the figure edge. Their own margins are not respected versus the figure edge.
16 Oct 2014
Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export.
Thanks for your tool.
I'm trying to test it and have a problem, which I think boils down to the following:
p.margin = [0 0 0 0];
p(1).margin = [20 20 20 20];
Parent root: [attached to Figure 27, vert] [ margin 0 0 0 0 mm]
Parent (1): [0.350, hori] [ margin 20 20 20 20 mm]
Object (1,1): [0.400] [ margin 20 20 20 20 mm]
Uncommitted (1,2): [stretch] [ margin 20 20 20 20 mm]
Uncommitted (2): [stretch] [ margin 0 0 0 0 mm]
Why is it that although I set the margins to 20 mm on all sides in p(1) (and I see it in the printed result), it won't show it on the displayed axes ?
Many thanks for your help.
Sounds like you may be being tripped up by the fact that "colormap" is a property of a figure, not an axis. This is not related to panel.
I can't grok the code you posted, but the way out of this problem is usually to use RGB images rather than indexed images. If you plot "image(rand(30,30,3))" you will notice that the resulting image does not change if you change the colormap.