pyplot.plot plotting points in wrong order making loops in the graph display

Dear all
pyplot seems to be plottting(joining points with lines) in the wrong order I have checked all the algorithms relating the data being plotted and everything is in order<nabble_img src=“bad_line_joints.png” border=“0”/> this can be observed in the image on how it makes these closed loops by plotting a line between two points skipping one or several points in time then going back to them before continuing to the next. I wonder if anyone has encountered this problem before or knows a solution.

bad_line_joints.png

Hello,

Can you provide a short piece of code that shows the issue?

Do you provide your points in order and in a collection-like object that preserves the order in which the points are appended? (a Dict or Set would not preserve the ordering).

Regards

···

2014/1/9 Francisco Vargas <f.vargas@…4478…>

Dear all
pyplot seems to be plottting(joining points with lines) in the wrong order I have checked all the algorithms relating the data being plotted and everything is in order<nabble_img src=“bad_line_joints.png” border=“0”/> this can be observed in the image on how it makes these closed loops by plotting a line between two points skipping one or several points in time then going back to them before continuing to the next. I wonder if anyone has encountered this problem before or knows a solution.


CenturyLink Cloud: The Leader in Enterprise Cloud Services.

Learn Why More Businesses Are Choosing CenturyLink Cloud For

Critical Workloads, Development Environments & Everything In Between.

Get a Quote or Start a Free Trial Today.

http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users