From 309fcd987998717dfad953d267b649389236d7f8 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Tue, 17 May 2011 07:15:14 -0400 Subject: [PATCH] Results polish. --- survey/makestats | 17 +++++++++-------- survey/results.rst | 9 +++------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/survey/makestats b/survey/makestats index 7a63c01..af2332e 100755 --- a/survey/makestats +++ b/survey/makestats @@ -205,19 +205,20 @@ def mkpic_os_per_env(db, destdir): stats[osf] = float(stats[osf]) / total_count env_stats[env] = stats # make stacked barplot - pl.figure(figsize=(6.4, 4.8)) + pl.figure(figsize=(7.5, 4)) x = np.arange(len(envs)) bottoms = np.zeros(len(envs)) for i, os in enumerate(os_order): - stat = [env_stats[e][os] for e in envs] - pl.bar(x, stat, bottom=bottoms, color=os_colors[i], - label=db.get_nice_name(os), width=0.8) + stat = [env_stats[e][os] for e in envs[::-1]] + pl.barh(x, stat, left=bottoms, color=os_colors[i], + label=db.get_nice_name(os), height=0.8) bottoms += stat - pl.legend(loc='lower right') - pl.xticks(x + 0.4, [db.get_nice_name(e) for e in env_names]) - pl.xlim(-0.25, len(envs)) + pl.legend(loc='lower left') + pl.yticks(x + 0.4, env_names[::-1]) + pl.ylim(-0.25, len(envs)) pl.title("Operating system preference by environment") - pl.ylabel("Fraction of submissions") + pl.xlabel("Fraction of submissions") + pl.subplots_adjust(left=0.15, right=0.97) pl.savefig('%s/ospref_by_env.png' % destdir, format='png', dpi=80) diff --git a/survey/results.rst b/survey/results.rst index 740a86f..9195183 100644 --- a/survey/results.rst +++ b/survey/results.rst @@ -11,17 +11,13 @@ Submitter background .. figure:: figures/submissions_per_bg_employer.png .. figure:: figures/submissions_per_bg_position.png - Submissions caption -Environment preferences -~~~~~~~~~~~~~~~~~~~~~~~ +Scientific computing environment preferences +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. figure:: figures/ospref_by_env.png .. figure:: figures/time_by_env.png -Environment ratings -~~~~~~~~~~~~~~~~~~~ - .. figure:: figures/ratings_pers_os.png .. figure:: figures/ratings_man_os.png .. figure:: figures/ratings_virt_host_os.png @@ -35,6 +31,7 @@ Software popularity ~~~~~~~~~~~~~~~~~~~ .. figure:: figures/submissions_per_sw_general.png +.. figure:: figures/submissions_per_virt_prod.png .. figure:: figures/submissions_per_sw_dc.png .. figure:: figures/submissions_per_sw_img.png .. figure:: figures/submissions_per_sw_datamanage.png -- 2.39.2