Output and visualization#

MusicBox simulation results can easily be visualized with Matplotlib. Matplotlib is a dependency of MusixBox and will be installed when MusicBox is installed. To utilize it, first:

import matplotlib.pyplot as plt

Then, specific results of your box model simulation can be visualized:

df.plot(x='time.s', y=['CONC.X.mol m-3', 'CONC.Y.mol m-3', 'CONC.Z.mol m-3'], title='Concentration over time', ylabel='Concentration (mol m-3)', xlabel='Time (s)')
plt.show()