Skip to content

Commit

Permalink
RMEstimator plotting bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpparvi committed Aug 30, 2024
1 parent b804e3d commit d92cf87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spright/rmestimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def plot_radius_density(self, pv=None, rhores: int = 200, radres: int = 200, ax=
pdf += model(xrho.ravel(), xrad.ravel(), x, components,
rd._rr0, rd._rdr, rd._rx0, rd._rdx, rd.drocky,
rd._wr0, rd._wdr, rd._wx0, rd._wdx, rd.dwater).reshape(pdf.shape)
pdf /= ns
pdf /= ns

ax.imshow(pdf.mean(0), extent=(radlim[0], radlim[1], rholim[0], rholim[1]), origin='lower', cmap=cmap, aspect='auto')

Expand Down

0 comments on commit d92cf87

Please sign in to comment.