Skip to content

Commit

Permalink
Merge 14c29d9 into 8fba4fe
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmorrow committed Apr 4, 2019
2 parents 8fba4fe + 14c29d9 commit fd33c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sci_analysis/graphs/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Numpy imports
from numpy import (
polyfit, polyval, sort, arange, array, linspace, mgrid, vstack, reshape, std, sum, mean, median
polyfit, polyval, sort, arange, array, linspace, mgrid, vstack, std, sum, mean, median
)

# Scipy imports
Expand Down Expand Up @@ -317,7 +317,7 @@ def calc_contours(self):
kernel = gaussian_kde(values)
_x, _y = mgrid[xmin:xmax:100j, ymin:ymax:100j]
positions = vstack([_x.ravel(), _y.ravel()])
_z = reshape(kernel(positions).T, _x.shape)
_z = kernel.evaluate(positions).T.reshape(_x.shape)
return _x, _y, _z, arange(_z.min(), _z.max(), (_z.max() - _z.min()) / self._contour_props[0])

def calc_fit(self):
Expand Down

0 comments on commit fd33c73

Please sign in to comment.