I'm need to plot a graphic using matlib.plot in python like this:
actually I'm using a code that plots all bars
bars = ('Optimum CPLEX', 'eUCB', 'ONETS', 'e-greedy')
y_pos = [1, 3, 5, 7]
y_pos_2 = [2, 4, 6, 8]
plt.ylabel('Average Reward \u03B7_i')
plt.suptitle('Optimal Model versus Heuristics')
name = 'grafics/11_reward_utilization.png'
# Create bars
plt.bar(y_pos, reward, color=['blue', 'blue', 'blue', 'blue'])
plt.bar(y_pos_2, utilization, color=['yellow', 'yellow', 'yellow', 'yellow'])
# Create names on the x-axis
plt.xticks(y_pos, bars)
# Show graphic
plt.savefig(name, transparent = True)
plt.show()
but as a result I receive a graphics with all bars but in the same dimensions, like this:
someone knows how I can plot this time of graphics which two differents dimensions of data in the y axis?
thank you.