Skip to content

Commit

Permalink
plots: allow 3d and 4d when plotting multiples explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
fel-thomas committed Nov 2, 2022
1 parent fdea9f8 commit 5c60d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xplique/plots/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def plot_attributions(

rows = ceil(len(explanations) / cols)
# get width and height of our images
l_width, l_height = explanations.shape[1:]
l_width, l_height = explanations.shape[1:3]

# define the figure margin, width, height in inch
margin = 0.3
Expand Down

0 comments on commit 5c60d51

Please sign in to comment.