-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example on numpy.histogram2d is broken (Trac #1830) #2423
Comments
@rgommers wrote on 2011-07-06 There's a second documentation (or implementation) issue. From email by Alex Burton:
This should be checked for numpy 2.0; also that the implementation is consistent with the new kw for histogram. See #2224. |
The plot example was rewritten and looks fixed. The documentation issue originated in histogramdd, which also needs fixing. |
Note that the density keyword is missing from both histogram2d and histogramdd. |
The documentation misrepresented what happened, leaving out division by the total number of sample points. Also run spellcheck over function_base.py and twodim_base.py and break some long lines. Closes numpy#2423.
DOC: Fix documentation of normed keyword in histogram2d and histogramdd.
The documentation misrepresented what happened, leaving out division by the total number of sample points. Also run spellcheck over function_base.py and twodim_base.py and break some long lines. Closes numpy#2423.
This adds the documentation fixes. numpygh-3563 numpygh-2354 numpygh-2807 numpygh-2423
Original ticket http://projects.scipy.org/numpy/ticket/1830 on 2011-05-14 by @samtygier, assigned to @pv.
the matplotlib example in http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html plots the data with the axis the wrong way. i think this is mostly the fault of imshow working in backwards coordinates.
the lines should be:
test script (broken, as per numpy docs):
test script (fixed):
The text was updated successfully, but these errors were encountered: