Posts

Showing posts with the label pie chart

Plan 9: Data Visualization

Image
  Visualize data using graph and plot. Graph generates plot commands from the input data. Plot renders the image. graph < data | plot  # data 1 2 3 4 2 3 5 4 3 4 4 6 Data is X followed by Y.  Use -t for column major data.   Type Command Notes Image Line graph -o 3 -p rgb -k 'cpu,mem,disk' -X 'time (s)' -Y load <data | plot -o n gives n lines. Bar graph -T bar -o 3 -k 'cpu,mem,disk' <data | plot -o n gives n grouped bars per x. Histogram graph -T hist -n 12 <data | plot One value per line. Default is 10 bins. Area graph -T area -o 3 -M -W 2 -k 'a,b,c' <data | plot Fills down to y=0. Later curves cover earlier ones. Pie graph -T pie -M -A 50 -l title <data | plot One value per slice, with an optional qu...