mathplot and data to directories