Dear Kelly,
'plotboxpos' works perfect for me.
The problem for me is, it is for my purpose the bottleneck in respect to processing time.
Two of the main time consuming statements are:
temp = axes('Units', 'Pixels', 'Position', pos, 'Visible', 'off', 'parent', hparent);
and
delete(temp);
Both statement use about 60% of the processing time.
Attached you will find a faster Version. It is about 5 times faster in Matlab R2016a and, surprise, 7 times faster in Matlab R2020a.
Changes are only at the end of the code.
May be you want to implement that changes in an updated version.
Best regards from Germany,
Peter
plotboxpos.zip
Dear Kelly,
'plotboxpos' works perfect for me.
The problem for me is, it is for my purpose the bottleneck in respect to processing time.
Two of the main time consuming statements are:
temp = axes('Units', 'Pixels', 'Position', pos, 'Visible', 'off', 'parent', hparent);
and
delete(temp);
Both statement use about 60% of the processing time.
Attached you will find a faster Version. It is about 5 times faster in Matlab R2016a and, surprise, 7 times faster in Matlab R2020a.
Changes are only at the end of the code.
May be you want to implement that changes in an updated version.
Best regards from Germany,
Peter
plotboxpos.zip