Skip to content

Commit

Permalink
mcma: minor correction of Pllots::plot3D
Browse files Browse the repository at this point in the history
to correctly handle bi-criteria cases
  • Loading branch information
marek-iiasa committed Apr 23, 2024
1 parent c063b7c commit 94bd94d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/mcma/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ def kde_stages(self): # for each stage: histogram + KDE
self.figures['kde_stages'] = fig

def plot3D(self):
if self.n_crit != 3:
if self.n_crit < 3: # just return for bi-criteria problem
return
if self.n_crit > 3:
# todo: implement 3D subplots for more than 3 criteria
print(f'Plots.plot3D(): not implemented for {self.n_crit} criteria yet.')
return
Expand Down

0 comments on commit 94bd94d

Please sign in to comment.