matplotlib plot number vs string code example Example: import matplotlib plt import matplotlib.pyplot as plt