import matplotlib.pyplot as plt from matplotlib import cm import math import numpy as np # langages de programmation x_labels = [ 'C++', 'Ruby', 'Python', 'Php' ] x_values = [ 1, 2, 3, 4 ] y_values = [ 20, 10, 30, 15 ] plt.barh(y=x_values, width=y_values, height=0.9, color=['#be7733', '#138ABc', '#89bf76', '#4A987f'], tick_label = x_labels, hatch="/", edgecolor='#888888') plt.savefig('img/plot_barh_chart.png') plt.show()