From 74a01d8abdbe156430cec716fdb84f5e50a0f130 Mon Sep 17 00:00:00 2001 From: Ryan Randles Jones <rrand11@login001.cm.cluster> Date: Thu, 20 Aug 2020 14:51:00 -0500 Subject: [PATCH] added darker gridlines to 3d graphs --- Runtime-and-CoreCount.ipynb | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Runtime-and-CoreCount.ipynb b/Runtime-and-CoreCount.ipynb index 0def6d6..88f5862 100644 --- a/Runtime-and-CoreCount.ipynb +++ b/Runtime-and-CoreCount.ipynb @@ -495,12 +495,20 @@ "\n", "# 3d veiw of the scatterplot for better understanding of the data\n", "elapsed_rqmem_clustergraph_3d = figure.add_subplot(122, projection='3d')\n", - "elapsed_rqmem_clustergraph_3d.scatter(df_runtime_cluster['ReqMemCPU'], df_runtime_cluster['Elapsed'], df_runtime_cluster['AllocCPUS'], c=kmeans_elapsed_reqmem.labels_ ,cmap='rainbow')\n", + "elapsed_rqmem_clustergraph_3d.scatter(df_runtime_cluster['ReqMemCPU'], df_runtime_cluster['Elapsed'], df_runtime_cluster['AllocCPUS'], \n", + " c=kmeans_elapsed_reqmem.labels_ ,cmap='rainbow')\n", "elapsed_rqmem_clustergraph_3d.scatter(kmeans_elapsed_reqmem.cluster_centers_[:,0] ,kmeans_elapsed_reqmem.cluster_centers_[:,1], color='black')\n", + "\n", + "\n", "elapsed_rqmem_clustergraph_3d.set_xlabel('ReqMemCPU(gigs)')\n", "elapsed_rqmem_clustergraph_3d.set_ylabel('Elapsed(hours)')\n", "elapsed_rqmem_clustergraph_3d.set_zlabel('AllocCPUS')\n", "\n", + "# sets size and color for gridlines by axis\n", + "elapsed_rqmem_clustergraph_3d.xaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "elapsed_rqmem_clustergraph_3d.yaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "elapsed_rqmem_clustergraph_3d.zaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "\n", "plt.show()\n" ] }, @@ -718,6 +726,11 @@ "elapsed_alloc_clustergraph_3d.set_ylabel('Elapsed(hours)')\n", "elapsed_alloc_clustergraph_3d.set_zlabel('ReqMemCPU(gigs)')\n", "\n", + "# sets size and color for gridlines by axis\n", + "elapsed_alloc_clustergraph_3d.xaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "elapsed_alloc_clustergraph_3d.yaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "elapsed_alloc_clustergraph_3d.zaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "\n", "plt.show()" ] }, @@ -1002,6 +1015,11 @@ "alloc_reqmem_clustergraph_3d.set_ylabel('AllocCPUS')\n", "alloc_reqmem_clustergraph_3d.set_zlabel('Elapsed(hours)')\n", "\n", + "# sets size and color for gridlines by axis\n", + "alloc_reqmem_clustergraph_3d.xaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "alloc_reqmem_clustergraph_3d.yaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "alloc_reqmem_clustergraph_3d.zaxis._axinfo[\"grid\"].update({\"linewidth\":.5, \"color\" : \"black\"})\n", + "\n", "plt.show()" ] }, -- GitLab