legend ( loc = 'upper right', bbox_to_anchor = ( 1, 0.96 ), scatterpoints = 1, ncol = 1, fontsize = 15 ) plt. max () * 200, label = 'High reliability' ) ax3d. mean () * 200, label = 'Avg reliability' ) ax3d. min () * 200, label = 'Low reliability' ) ax3d. Take a look at this page on the Lab Manual for more details on color bars, and how to make them. Once we create the plot itself, we will make the colorbar to show how the utility’s infrastructure NPC regret, NPC_regret, varies with the three values on the axes. Feel free to experiment with different scaling factors! Points of these sizes will be nearly invisible on the plot we need scale them up so they are visible on the 3D plot. This is scaling the REL values up by a factor of 200, since these values (as they are) are between the values of 0-1. The last line of code here is important: by varying the values of the azim parameter, you will be able to view the 3D plot from different angles. view_init ( elev = 30, azim = 45 ) # Set elevation and azimuth angles set_zlabel ( 'Infrastructure NPC \n (preferred) $\longrightarrow$' ) ax3d. set_ylabel ( 'Transfer trigger \n $\longleftarrow$ (increased use)', labelpad = 10 ) ax3d. set_xlabel ( 'Infrastructure trigger \n (increased use) $\longrightarrow$', labelpad = 10 ) ax3d. S = REL * 200, alpha = 0.8 ) # Set labels for the three axes ax3d. scatter ( inf_trigger, tt_trigger, INPC, c = normalize_regret ( INPC_regret ), cmap = 'viridis_r', \ RcParams = 'face' = 'face'.įor non-filled markers, the edgecolors kwarg is ignored andįorced to 'face' internally.# Create the scatter plot ax3d.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |