Well I've managed to get most of the the way there. So here's my solution
In "icon drawing commands" insert
text(0.5,1,'Map text','horizontalAlignment','center','verticalAlignment','top') plot(vertcat(ones(1, length(BreakpointsForDimension1)+1)*-10000,(vertcat(Table/((max(Table(:))-(min(Table(:))))),zeros(size(BreakpointsForDimension2)))'-min(Table(:)/((max(Table(:))-(min(Table(:)))))))*0.8)) dummy=ones(1,length(BreakpointsForDimension2)+1)*-10000 dummy(1,2) = 0.8 plot(dummy) port_label('input',1,'X') port_label('input',2,'Y')
I feel the map should accept X as first input, Y as second input. All I have done is swapped the inputs inside the block and promoted to the mask the following:
Table BreakpointsForDimension1 BreakpointsForDimension2
from the n-D map inside.
The plot icon on the mask also displays like I think it should. Lines consisting of the ROWS of my table, not the columns.
The only thing left is to find the command that launches the Lookup Table Editor and add a tickbox for it with a callback. Will post solution if I find one.