Skip to content

Commit

Permalink
Merge pull request ethz-asl#536 from brawner/brawner/convert-float-to…
Browse files Browse the repository at this point in the history
…-int

Fix matplotlib expects ints not floats
  • Loading branch information
goldbattle authored Aug 8, 2022
2 parents f88f9af + f8f7cb5 commit 6d541e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ def plotOutlierCorners(cself, removedOutlierCorners, fno=1, clearFigure=True, ti
corners=np.array(corners)

#plot
subplot_rows = np.ceil( np.sqrt(len(cself.cameras)) )
subplot_cols = np.ceil( np.sqrt(len(cself.cameras)) )
subplot_rows = int(np.ceil( np.sqrt(len(cself.cameras)) ))
subplot_cols = int(np.ceil( np.sqrt(len(cself.cameras)) ))
pl.subplot(subplot_rows, subplot_cols, cidx+1)
pl.title("cam{0}".format(cidx))

Expand Down

0 comments on commit 6d541e5

Please sign in to comment.