Look into profile.c. There you can take the source and build your own MFE plot function.