yt-project / yt

Main yt repository
http://yt-project.org
Other
469 stars 280 forks source link

fix docs for annotate_contour #5033

Closed zingale closed 3 weeks ago

zingale commented 3 weeks ago

clim is (lower, upper), not (upper, lower)

PR Summary

in plot_modifications.py ContourCallback, we do the contours as:

levels = np.linspace(clim[0], clim[1], self.levels) 

so clim[0] is the lower limit, not upper.

PR Checklist

zingale commented 3 weeks ago

I figured it was some cosmology thing ;)