lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

Plot Nothing when encountering NaN

Open egayer opened this issue 2 years ago • 0 comments

Hi, Would it be possible for Lets-Plot to plot nothing when encountering NaNs ?

In the current version, geom_line() or geom_path() will join data points even if they are separated with NaNs.

for example, plotting x:[1,2,np.nan,np.nan,6,7] against y:[12,27,39,np.nan,65,71] would result in one line while it should results in 2 segments since the 3rd and 4th data points "do not exist"

thanks !

egayer avatar Jul 18 '23 17:07 egayer