branch mw4: add data plotting function to flan.py