Comments (6)
Hi,
I have implemented log-scaled axes.
import numpy as np
import matplotlib.pyplot as plt
import corner
cov = np.array([[ 0.1, 0.04, 0.06,],
[0.04, 0.1, 0.06,],
[0.06, 0.06, 0.1]])
mu = np.array([1, 1.5, 2])
x = 10**(np.random.multivariate_normal(mu, cov, size=10000))
corner.corner(x, axes_scale='log')
If there's interest, I'd be willing to tidy up the code, work on the tests, and submit a pull request. Please let me know if that is the case.
from corner.py.
Hi !
Is that implemented yet ? I am also interested to use logscale for the axis .
If we provide bin edges and not just only the number of bins, it should work right ?
from corner.py.
This isn't possible currently. Your best bet is to take the log of your samples and label the axis log(x).
from corner.py.
@castillohair -- there's definitely interest from me; please do post a gist or a diff at least!
Having had a very brief look at this, it is a bit of work: you can't just change the axes mode as the surface and contours drawn are wrong. Your help would be rather welcome!
from corner.py.
@castillohair Did you ever get to submitting a PR? Thanks! cc @dfm
from corner.py.
I just submitted a pull request with the code I made a while ago. It may need some tidying up to work with the last version but I'm going to wait for comments from @dfm before dedicating time to it. In the meantime, feel free to use it or my branch at https://github.com/castillohair/corner.py/tree/log-scale.
from corner.py.
Related Issues (20)
- Feature request: silent keyword for suppressing "too few points to create valid contours" warning HOT 1
- How do I pass an array of alpha values to vary opacity of points according to weights? HOT 2
- module 'corner' has no attribute 'corner' HOT 3
- Top and bottom of the corner plot seem clipped HOT 13
- Setting the title_quantiles does nothing? HOT 2
- multiple line style for quantiles HOT 2
- Problems with installation HOT 3
- [BUG] Docs for the custom plot are broken HOT 1
- 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
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.