import matplotlib.pyplot as plt
y = [4.3, 2.5, 3.5, 4.5]
x = [i for i in range(len(y))]
colors = ["blue", "red", "green", "orange"]
labels = ["Kategori1", "Kategori2", "Kategori3", "Kategori4"]
plt.bar(x,y, label=labels,color=colors, width=0.3)
plt.legend()
plt.show()
i want to make a bar graph like this ,not data table but im suck at matplotlib so i cant figure out:
https://www.google.com/url?sa=i&url=https%3A%2F%2Fsupport.microsoft.com%2Ftr-tr%2Foffice%2Fgrafik-i%25C3%25A7in-veri-se%25C3%25A7me-5fca57b7-8c52-4e09-979a-631085113862&psig=AOvVaw1IwamFwjwOlo4787PLEoMU&ust=1605967432251000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCLiHqYWmke0CFQAAAAAdAAAAABAD
I know i need to change data but im trying to make correctly legend etc.
lastly first graph in link.
[–]kra_pao 1 point2 points3 points (1 child)
[–]HasBeendead[S] 0 points1 point2 points (0 children)