Skip to content

Commit

Permalink
Change default histogram colors for density_and_hist().
Browse files Browse the repository at this point in the history
  • Loading branch information
JS3xton committed May 9, 2020
1 parent e44e9c8 commit c02b5d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FlowCal/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,8 @@ def density_and_hist(data,

# Colors
n_colors = n_plots - 1
colors = [cmap_default(i) for i in np.linspace(0, 1, n_colors)]
default_property_cycler = plt.rcParams['axes.prop_cycle']()
colors = [next(default_property_cycler)['color'] for i in range(n_colors)]
# Histogram
for i, hist_channel in enumerate(hist_channels):
# Define subplot
Expand Down

0 comments on commit c02b5d0

Please sign in to comment.