From ebe8b7e028e4851de0520aa551204f88f76d497a Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Thu, 3 Sep 2020 20:45:37 +0200 Subject: [PATCH] sharex --- scripts/analyse-all.sh | 4 +++- scripts/create-paper-vis.sh | 3 ++- scripts/plot-job-timelines-ks.py | 3 ++- scripts/plot-single-ks-jobs.py | 0 4 files changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 scripts/plot-single-ks-jobs.py diff --git a/scripts/analyse-all.sh b/scripts/analyse-all.sh index 192b8fa..320872c 100755 --- a/scripts/analyse-all.sh +++ b/scripts/analyse-all.sh @@ -24,7 +24,9 @@ prepare for I in job_similarities_*.csv ; do rm *.png *.pdf echo "processing $I" - ./scripts/plot.R $I > description.txt 2>&1 + set -x + ./scripts/plot.R $I > description.txt 2>&1 + set +x OUT=${I%%.csv}-out mkdir $OUT if [[ $CLEAN != "0" ]] ; then diff --git a/scripts/create-paper-vis.sh b/scripts/create-paper-vis.sh index db9e1c7..5d2c2fe 100755 --- a/scripts/create-paper-vis.sh +++ b/scripts/create-paper-vis.sh @@ -4,7 +4,8 @@ mkdir fig for job in 5024292 4296426 7488914 ; do -./scripts/plot-single-job.py $job "fig/job-" +#./scripts/plot-single-job.py $job "fig/job-" +./scripts/plot-single-ks-jobs.py $job "fig/job-" done # Remove whitespace around jobs diff --git a/scripts/plot-job-timelines-ks.py b/scripts/plot-job-timelines-ks.py index 40cc689..8af195f 100755 --- a/scripts/plot-job-timelines-ks.py +++ b/scripts/plot-job-timelines-ks.py @@ -114,7 +114,8 @@ def plot(prefix, header, row): #bins = np.linspace(0, 60, 13) #g.map(plt.hist, "total_bill", color="steelblue", bins=bins) - ax = metrics.hist(sharex=True, grid = True, sharey=True, figsize=fsizeHist, bins=10) + #ax = metrics.hist(sharex=True, grid = True, sharey=True, figsize=fsizeHist, bins=10) + ax = metrics.hist(grid = True, sharey=True, figsize=fsizeHist, bins=10) pyplot.savefig(prefix + "hist" + jobid + fileformat, bbox_inches='tight', dpi=150) diff --git a/scripts/plot-single-ks-jobs.py b/scripts/plot-single-ks-jobs.py old mode 100644 new mode 100755