diff --git a/Matplotlib Drawing/Problem 3/A.py b/Matplotlib Drawing/Problem 3/A.py new file mode 100644 index 0000000000000000000000000000000000000000..e84547d4d9bcba1a9bd056d2b48565d16b3d3519 --- /dev/null +++ b/Matplotlib Drawing/Problem 3/A.py @@ -0,0 +1,8 @@ +import numpy as np +import matplotlib.pyplot as plt +data = [[10., 20., 30., 20.],[40., 25., 53., 18.],[6., 22., 52., 19.]] +x = np.arange(4) +colors = ['r', 'g', 'b'] +for i in range(len(data)): + plt.bar(x + i * 0.25, data[:i], color = colors[i], width = 0.25) +plt.show() \ No newline at end of file