legendflex-pkg
legendflex-pkg copied to clipboard
Incorrect placement of axis if reference object is in panel
This issue was raised by Heiko on the MatlabCentral File Exchange:
" I found a hiding issue by uiPanels when applying the function within uiPanels for recent Matlab Releases. As a solution I added a 'parent' input Parameter, i.e. hnew.leg = axes(..., 'parent', Opt.parent), whereras Opt.parent = figh in case no 'parent' is provided."
I believe a more robust workaround would be to query the parent object of the reference object, and set that as the parent of the new legend axis. This would eliminate the need for the user to manually pass this info.
Will try to implement this fix ASAP.