I am using ListPlot
to plot a set a data, as shown below. However, I don't want any joining line between two points {-0.1, 0.042} and {0.1, 0.042} crossing the y-axis. Could you suggest any way to do that?
ARRAY = {{-1, 0.235}, {-0.4, 0.23}, {-0.3, 0.21}, {-0.2,
0.15849025910785963`}, {-0.1, 0.042}, {0.1, 0.042}, {0.2,
0.158}, {0.3, 0.214}, {0.4, 0.233}, {0.9, 0.235}}
ListPlot[ARRAY, Joined -> True, Mesh -> All]
ListPlot[SplitBy[ARRAY, Sign@*First], Joined -> True, Mesh -> All]
? $\endgroup$ListPlot[{ARRAY1,ARRAY2}, Joined -> True, Mesh -> All]
), it does not work. Any suggestion, please? $\endgroup${ARRAY1,ARRAY2}
in the question. $\endgroup$