@@ -69,7 +69,7 @@ def plot_estimates(gamma_estimates):
69
69
# length_includes_head=True, alpha=0.5, zorder=2, **{"overhang": 0.5})
70
70
71
71
72
- def plot_2d_domains (domains , xlim , ylim , flip_axes = False , use_current_axes = False ):
72
+ def plot_2d_domains (domains , xlim , ylim , flip_axes = True , use_current_axes = False ):
73
73
"""Plot partition dominance ranges in the (gamma, omega) plane, using the domains from CHAMP_3D.
74
74
75
75
Limits output to xlim and ylim dimensions. Note that the plotting here has x=gamma and y=omega.
@@ -91,7 +91,7 @@ def plot_2d_domains(domains, xlim, ylim, flip_axes=False, use_current_axes=False
91
91
patches .append (polygon )
92
92
93
93
cnorm = matplotlib .colors .Normalize (vmin = 0 , vmax = len (domains ))
94
- cmap = matplotlib . cm .get_cmap ("Set1" )
94
+ cmap = plt .get_cmap ("Set1" )
95
95
available_colors = {cmap (cnorm (i )) for i in range (len (domains ))}
96
96
97
97
if len (available_colors ) == len (domains ):
@@ -207,7 +207,7 @@ def plot_2d_domains_with_num_communities(domains_with_estimates, xlim, ylim, fli
207
207
plt .ylim (ylim )
208
208
209
209
210
- def plot_2d_domains_with_ami (domains_with_estimates , ground_truth , xlim , ylim , flip_axes = False ):
210
+ def plot_2d_domains_with_ami (domains_with_estimates , ground_truth , xlim , ylim , flip_axes = True ):
211
211
"""Plot partition dominance ranges in the (gamma, omega) plane, using the domains from CHAMP_3D and coloring by the
212
212
AMI between the partitions and ground truth.
213
213
0 commit comments