graph-cli icon indicating copy to clipboard operation
graph-cli copied to clipboard

More examples ?

Open nodecentral opened this issue 4 years ago • 3 comments

Hi

I’m just starting out with graph_cli and I was wondering if you had any more examples you can share, ( as many as possible) :-)

nodecentral avatar Jan 28 '21 19:01 nodecentral

Here is the full collection I have made:

https://github.com/mcastorina/graph-cli/blob/master/EXAMPLES.md

mcastorina avatar Jan 29 '21 03:01 mcastorina

Thanks, although that was where I started - I posted this here as I was keen to see more.

For example, what manipulation I can do with the .csv I’ve got..

  • can I alter how dare/times are presented ?
  • can I change the column headers / data values ? (Due to how everything’s been recorded - I just have label1, label2 etc.)
  • can I make it only present a certain time period e.g last 3 days ?

Others

  • is there a facility/command where I can pull a new .csv from the internet each time ? Currently I have to use a curl command to download an updated version separately ?

nodecentral avatar Jan 29 '21 07:01 nodecentral

  1. No, but that's a reasonable feature request
  2. This tool does not alter the CSV file, but you can set the xlabel, ylabel, legend, and title on the image. See graph -h for a full list of the flags.
  3. There is an xrange option but support is limited for timeseries graphs
  4. No, this tool does not download anything from the Internet and I have no intentions of supporting that.

It sounds like graph-cli might not be the right tool for your project. It might be more fitting to write a python program to do all of the things you want: download a CSV from the Internet, set column names, edit data, filter rows within a date range, and then create the image.

graph-cli is still pretty young and only maintained in my spare time. Maybe it will have more of the features you want down the line, but in its current state, it is mostly a command line interface for matplotlib.

mcastorina avatar Jan 29 '21 14:01 mcastorina