You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
alistair 3c6d5dc1ee remove 1 year ago
c-colours@2974d506e9 initial 1 year ago
treesitter-analysis readme and git db dump script 1 year ago
README.md update readme 1 year ago
commitactivityheatmap.png readme 1 year ago
justsetuptest.py initial 1 year ago
read_db.py initial 1 year ago
requirements.txt initial 1 year ago
store_history.py readme and git db dump script 1 year ago
treeplot.py initial 1 year ago
window.py initial 1 year ago

README.md

All source code for cosc datavisualisation project.

  • store_history.py
    • script for walking a git history and storing deltas in an SQLite3 database
  • treesitter-analysis
    • C++ program for walking a source directory and analysing the C code contained. Statistics on every comment and function declaration are stored to an SQLite database.
  • window.py
    • Entry point to the treemap plotting program.
    • treeplot.py plot drawing functionality using Skia
    • read_db.py functions for copying attributes from a database into the treemap

Usage WARNING: MULTI-STAGE BUILD

  1. Create a database using treesitter-analysis or store_history.py
  2. Clone c-colours and compile the python library, copy the resulting .so into the same directory as window.py
  3. Edit window.py to load the data you want
  4. pip install -r requirements.txt
  5. Run window.py
  6. To save the currently presented image mash the S key until "Saving" is printed to the console. Note PDF results are not fully flushed until the program exists for some reason.

Above is a Tree-heatmap of activity in the linux kernel from the last 5 years. REd means deletion, blue means addition.