]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Results polish.
authorMichael Hanke <michael.hanke@gmail.com>
Tue, 17 May 2011 11:15:14 +0000 (07:15 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Tue, 17 May 2011 11:15:14 +0000 (07:15 -0400)
survey/makestats
survey/results.rst

index 7a63c01f2ff7cefe3d493e1366d16ada66320dbd..af2332e23f5ee9ff9c605c9438b2cba162cdebb5 100755 (executable)
@@ -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)
 
 
index 740a86fe1121e3288e3a3661b6c36cc709acdfc9..9195183f1e6a76c63d873b5ae2e293d6ccf9ea63 100644 (file)
@@ -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