Comments (6)
Assuming you're running the example block under "Usage" in the README.rst, I can't reproduce this error. I'm on Ubuntu, using conda, python 2.7.11, numpy=1.10.2, matplotlib=1.5.0.
from corner.py.
Le 06/01/2016 20:04, Kyle Barbary a écrit :
Assuming you're running the example block under "Usage" in the
README.rst, I can't reproduce this error. I'm on Ubuntu, using conda,
python 2.7.11, numpy=1.10.2, matplotlib=1.5.0.
Well, thank you for trying. I am indeed doing:
import numpy as np
import corner
ndim, nsamples = 5, 10000
samples = np.random.randn(ndim * nsamples).reshape([nsamples, ndim])
figure = corner.corner(samples)
figure.savefig("corner.png")
to which I add that
corner.version
u'1.0.0'np.version
'1.10.1'
Any other suggestions are welcome, David.
from corner.py.
Progress! Two things...
-
I execute to completion without errors, but with contour-less plots, by changing the line to
corner.corner(samples, plot_contours=False) -
Towards the end of corner.py, the contours array V is created:
V = np.empty(len(levels))
for i, v0 in enumerate(levels):
try:
V[i] = Hflat[sm <= v0][-1]
except:
V[i] = Hflat[0]
A print of "levels" shows that it is ascending. But V is descending!
I added a few lines:
print (" das corner VVVVV: ", V)
V = V[::-1]
print (" das corner VVVVV: ", V)
and here is a sample of what goes to my screen:
das corner VVVVV: [ 196. 140. 71. 29.]
das corner VVVVV: [ 29. 71. 140. 196.]
With this reverse of V,
corner.corner(samples, plot_contours=True)
now works nicely.
I will leave it to you experts to understand why V is okay on some systems but not on mine!
Thank you for listening, David.
from corner.py.
This error was added in matplotlib 1.5.1 because of a bug in all versions of contourf prior to 1.5.0. See #65 for the relevant issue. It's not quite as simple as just sorting the levels.
from corner.py.
This should be fixed in version 1.0.1 (see #70). Give it a shot.
from corner.py.
Yes! my problem is indeed resolved. Thanks again to all, David.
from corner.py.
Related Issues (20)
- Misplaced **hist_kwargs? HOT 4
- Documentation errantly suggests labels are inferred from pandas.DataFrame columns HOT 4
- axes_scale argument does not work? HOT 2
- range doesn't work, or am I making a mistake? HOT 4
- ValueError: Axis limits cannot be NaN or Inf HOT 3
- Feature add request: interactive plotting using bokeh
- title_quantiles not working? HOT 2
- Matplotlib version [Urgent, maybe] HOT 13
- Having title_quantiles=None when quantiles is passed without having exactly 3 elements raises a ValueError HOT 4
- change colormap HOT 3
- Missing label on first marginalisation HOT 2
- Add option for rotated view of last marginalisation
- Do not mute mutable arguments HOT 1
- reverse=True incompatible with truths HOT 1
- linestyle argument in overlpot_points
- Reference problem
- Stripy hist2d when saved to pdf
- labelpad pushes the labels out of the figure entirely HOT 2
- corner.quantile and show_titles in corner.corner give different results
- weighted sample contour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corner.py.