<div><br clear="all">Hi all,</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Trying to draw a simple bar chart on canvas of Tkinter.</div>
<div>&nbsp;</div>
<div>Here is code:</div>
<div>&nbsp;</div>
<p>from Tkinter import *</p>
<p>root = Tk()</p>
<p>frame = Frame(root)<br>frame.pack()</p>
<p>canvas = Canvas(frame,height=400,width=400)</p>
<p>canvas.create_line(50,350,350,350,width=2) # draws the X-axis<br>canvas.create_line(50,350,50,50,width=2)&nbsp;&nbsp;&nbsp; # draws teh Y-axis<br>canvas.create_rectangle(50,340,250,330)&nbsp;&nbsp; # this is the first HORIZONTAL BAR <br>canvas.pack
()</p>
<p>root.mainloop()</p>
<div>I am not able to understand why two pairs of co-ordinates are supplied?? The rectangle requires 4 co-ordinate pairs, Isnt it??</div>
<div>&nbsp;</div>
<div>Also help me how to figure out the co-ordinate pairs of next bar ??</div>
<div>&nbsp;</div>
<div>TIA.</div>
<div>&nbsp;</div>
<div>BEst Regards,</div>
<div>Asrarahmed Kadri<br>-- <br>To HIM you shall return. </div>