Commit 74a01d8a authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

added darker gridlines to 3d graphs

parent f243d7fe
......@@ -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()"
]
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment