Skip to content

Commit d68dc60

Browse files
authored
fix isssue that prevented to update the bins in plot_migration_matrix (#204)
1 parent c1f5ae0 commit d68dc60

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

ctaplot/plots/plots.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,12 +1129,9 @@ def plot_migration_matrix(x, y, ax=None, colorbar=False, xy_line=False, hist2d_a
11291129
hist2d_args = {} if hist2d_args is None else hist2d_args
11301130
line_args = {} if line_args is None else line_args
11311131

1132-
if 'bins_x' not in hist2d_args:
1133-
hist2d_args['bins'] = 50
1134-
if 'color' not in line_args:
1135-
line_args['color'] = 'black'
1136-
if 'lw' not in line_args:
1137-
line_args['lw'] = 0.4
1132+
hist2d_args.setdefault('bins', 50)
1133+
line_args.setdefault('color', 'black')
1134+
line_args.setdefault('lw', 0.4)
11381135

11391136
ax = plt.gca() if ax is None else ax
11401137

0 commit comments

Comments
 (0)