Plotting infrastructure for Python using matplotlib