I am drawing graph in tkinter using matplotlib. Here is code:
data = [[left[0],right[0]]] X = ["left", "right"] fig = Figure(figsize=(6, 4), dpi=96) ax = fig.add_subplot(111) barlist = ax.bar(X , data[0], color = 'b', width = 0.25) barlist[0].set_color('r') graph = FigureCanvasTkAgg(fig, master=win) canvas = graph.get_tk_widget() canvas.place(x= 150, y = 5) How do I set y axis limit (maximum value)?