I know that every figure have a callback that is called before the figure is made visible, now i'm wondering if there is a way to call a function right after the figure is made visible, thank you.
You can just do:
figure;
drawnow;
foo(); %% your function