youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

plotting line joined data with "gaps" #194

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I could not find a way to this so I post this as a feature request.

Suppose I would like to plot the function 1/x.
My data set looks like

d0 = []
for (x = -1.1; x < +1.1; x += 0.2)  {
    d0.push([x, 1/x]);
}

Note, that the  "singularity" at zero  is avoided but
there will be a connecting line from x=-.1 to x=+.1
which I would like to get rid of.

One way to this would be to split the data set into two.
Another would be to have a special clipping mode that suppresses
lines connecting invisible points.

Original issue reported on code.google.com by muth02...@gmail.com on 11 Jun 2011 at 5:25

GoogleCodeExporter commented 8 years ago
I think a null/false value works for you, at least as I remembered. You could 
have your cycle go 0.1 and when x = 0 do d0.push([0, null]);

Original comment by diog...@gmail.com on 24 Jan 2012 at 11:31

GoogleCodeExporter commented 8 years ago
it doesn't work with null/false, is there another way?

Original comment by amadorma...@gmail.com on 28 Jun 2012 at 7:55