Final prototypeo of mote_plot