handley-lab/anesthetic

`plot_2d()` functionality

Closed this issue · 1 comments

Pandas functionality works with slices of arrays:

from anesthetic.examples.perfect_ns import planck_gaussian

samples = planck_gaussian()

samples.plot_2d(['omegabh2','omegach2']) #works 
samples[['omegabh2','omegach2']].plot_2d() #fails

One should be able to slice then plot, not only to plot sections of arrays like this native functionality:

samples[['omegabh2','omegach2']].plot.kde_1d()
samples[['omegabh2','omegach2']].plot()

Resolved by #304