toosuto-r / qchat

KDB+ end-to-end RSA encrypted chat fun
8 stars 3 forks source link

add .plot.auto function for simpler plotting #18

Closed jonathonmcmurray closed 6 years ago

jonathonmcmurray commented 6 years ago

big change here is the .plot.auto function

basically this should take a table, the columns to plot (x & y axes) and plot type (line, boxes etc.)

this should then automatically detect the type of the x column (supporting different date & time types etc., plus string or sym columns - these are handled by adding i column and using this for plotting, with the string/sym column as labels)

eventual return is plot as a list of strings

updated pts.q to make use of this new function, greatly simplifying the code used here for plotting

jonathonmcmurray commented 6 years ago

A few example usages/outputs of the .plot.auto function: https://pastebin.com/raw/2iX5XY2z