Hi, your problem is that you enter the X values in an unordered way? Then, you just have to sort the key-value-pairs before plotting.
One way it works is to create a dict in the form "d = {x1: y1,x2:y2}" (with a for loop and so on), then extract the keys: k = d.keys() k.sort() v = [d[key] for key in k] ... now plot(k,v) Maybe there is a simpler solution, but this one works. Regards, Philipp ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users