endangeredoxen / fivecentplots

A Python plotting analgesic
https://endangeredoxen.github.io/fivecentplots
11 stars 6 forks source link

write plot data to file #16

Closed ktetz closed 4 years ago

ktetz commented 4 years ago

Idea here would be to optionally write the minimum amount of data out to file to recreate a rendered graphic- x, y, legend, wrap, etc, columns (excluding anything that is filtered as well).

Would probably name file in similar fashion as a given image with different file ext; compression being optional but preferable as there would be significant redundant data with this feature (compression could be added with fileio as a dependency: https://github.com/endangeredoxen/fileio)

endangeredoxen commented 4 years ago

Added in latest commit. Still needs documentation and potentially additional flexibility but use kwarg "save_data=True". Csv will be saved in same directory and with same name as plot. Let me know if you have issues