Skip to content

Commit

Permalink
fig for 4d plot with secondary chain without color parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Jul 13, 2022
1 parent 0bfc785 commit d0123af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions getdist/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -3005,6 +3005,8 @@ def add_4d_scatter(self, root, params, ax, color_bar=False, max_scatter_points:
fixed_color = fixed_color or 'k'
if len(params) < 3 + (0 if fixed_color else 1):
raise GetDistPlotError('4d plot must provide list of three or four parameters')
if fixed_color:
params = params[:3]

for name, lim in lims.items():
if not isinstance(lim, Sequence) or len(lim) != 2:
Expand Down

0 comments on commit d0123af

Please sign in to comment.