Skip to content

Commit

Permalink
adding needed module pyplot
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkamani7 committed Feb 20, 2018
1 parent bb8f677 commit 98e7493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skeletonContext.py
Expand Up @@ -197,6 +197,7 @@ def bookstien(X, Y, beta_k=None):

def SC_plot(SC, nbins_theta, nbins_r, r_inner, r_outer, N=20):
'''Plotting polar histogram of skeleton context for each point'''
import matplotlib.pyplot as plt
if len(SC) != nbins_theta * nbins_r:
raise ValueError('dimension mismatch, check the number of bins provided')
SC_mat = SC.reshape(nbins_theta, nbins_r)
Expand Down Expand Up @@ -227,4 +228,4 @@ def SC_plot(SC, nbins_theta, nbins_r, r_inner, r_outer, N=20):
ax.set_yticks(rbins)
ax.set_xticks(thetabins)
plt.show()
return
return

0 comments on commit 98e7493

Please sign in to comment.