Plotting and mining at the same time