ngfelixl / nodeplotlib

NodeJS plotting library for JavaScript and TypeScript. On top of plotly.js. Inspired by matplotlib.
https://www.npmjs.com/package/nodeplotlib
MIT License
195 stars 24 forks source link

Scatterplot shows a line graph #60

Closed nathanbabcock closed 2 years ago

nathanbabcock commented 2 years ago

Scatterplots should have only points, no lines. There is no separate option for a line graph.

InsideBSITheSecond commented 2 years ago

this is normal. see this: https://plotly.com/javascript/line-and-scatter/

nathanbabcock commented 2 years ago

In nodeplotlib it's not possible to get a scatterplot (points only) with no lines. I guess the bindings to the underlying plotly haven't been written for that particular option.

InsideBSITheSecond commented 2 years ago

as I just linked you, it is. https://streamable.com/f3dmzi and it's exactly the same option than plotly

nathanbabcock commented 2 years ago

mode: markers was what I was missing. Thanks! 👍

ngfelixl commented 2 years ago

@nathanbabcock sorry for the late response. Nodeplotlib uses the exact Plotly API. There are no internal processes that modify the plot and the layout data.