SciNim / nim-plotly

plotly wrapper for nim-lang
https://scinim.github.io/nim-plotly/
MIT License
173 stars 15 forks source link

Make the "x" argument of the plotly_sugar functions (such as as scatterPlot) optional #74

Open AngelEzquerra opened 2 years ago

AngelEzquerra commented 2 years ago

Currently you must provide both the x and y arguments to most of the plotly sugar plotting functions. Sometimes you just want to plat a sequence, and you don't really care about the x-axis. It would be nice if the plot sugar functions such as scatterPlot*(x, y: untyped) could also be called with a single argument (y), which would just plot the values on an axis that started at 0, for example.