|
| | x = np.arange(0, np.pi, 0.1) |
| |
| | y = np.arange(0, 2*np.pi, 0.1) |
| |
| | X |
| |
| | Y |
| |
| int | Z = np.cos(X)*np.sin(Y)*10 |
| |
| list | colors = [(1, 0, 0), (0, 1, 0), (0, 0, 1)] |
| |
| list | n_bins = [3, 6, 10, 100] |
| |
| string | cmap_name = 'my_list' |
| |
| | fig |
| |
| | axs |
| |
| | figsize |
| |
| | left |
| |
| | bottom |
| |
| | right |
| |
| | top |
| |
| | wspace |
| |
| | cm |
| |
| | im = ax.imshow(Z, interpolation='nearest', origin='lower', cmap=cm) |
| |
| | ax |
| |
| dictionary | cdict1 |
| |
| dictionary | cdict2 |
| |
| dictionary | cdict3 |
| |
| | cdict4 = cdict3.copy() |
| |
| | blue_red1 = LinearSegmentedColormap('BlueRed1', cdict1) |
| |
| | blue_red2 = LinearSegmentedColormap('BlueRed2', cdict2) |
| |
| | cmap |
| |
| | name |
| |
| | data |
| |