|
@@ -54,13 +54,14 @@ if __name__ == '__main__':
|
|
X_TICKS = np.arange(MIN_X, MAX_X, (MAX_X - MIN_X) / NB_CLUSTERS)
|
|
X_TICKS = np.arange(MIN_X, MAX_X, (MAX_X - MIN_X) / NB_CLUSTERS)
|
|
Y_TICKS = np.arange(MIN_Y, MAX_Y, (MAX_Y - MIN_Y) / NB_CLUSTERS)
|
|
Y_TICKS = np.arange(MIN_Y, MAX_Y, (MAX_Y - MIN_Y) / NB_CLUSTERS)
|
|
TICK_LABELS = list(range(NB_CLUSTERS))
|
|
TICK_LABELS = list(range(NB_CLUSTERS))
|
|
- AX.set_title('Agents by nodes distribution (total: {} agents)'.format(len(PERSONS)))
|
|
|
|
|
|
+ AX.set_title('Number of agents by nodes (total: {} agents)'.format(len(PERSONS)))
|
|
AX.set_xlim(MIN_X, MAX_X)
|
|
AX.set_xlim(MIN_X, MAX_X)
|
|
AX.set_ylim(MIN_Y, MAX_Y)
|
|
AX.set_ylim(MIN_Y, MAX_Y)
|
|
AX.set_xticks(X_TICKS)
|
|
AX.set_xticks(X_TICKS)
|
|
AX.set_yticks(Y_TICKS)
|
|
AX.set_yticks(Y_TICKS)
|
|
AX.set_xticklabels(TICK_LABELS)
|
|
AX.set_xticklabels(TICK_LABELS)
|
|
AX.set_yticklabels(TICK_LABELS)
|
|
AX.set_yticklabels(TICK_LABELS)
|
|
|
|
+ AX.tick_params(labelsize=5)
|
|
AX.grid(True)
|
|
AX.grid(True)
|
|
plt.colorbar(SC)
|
|
plt.colorbar(SC)
|
|
plt.show()
|
|
plt.show()
|