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)
.. 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
~~~~~~~~~~~~~~~~~~~
.. 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