diff options
author | Aaron LI <aly@aaronly.me> | 2017-11-04 16:54:28 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-11-04 16:54:28 +0800 |
commit | 2c004996fc004a683fd975a7765aa2e71967dc89 (patch) | |
tree | 4dbb60996faed0909c80108e13dffbd2990d771c /astro/ps2d.py | |
parent | 62ff6000c3aa653a67f2d01dd8669d549d198282 (diff) | |
download | atoolbox-2c004996fc004a683fd975a7765aa2e71967dc89.tar.bz2 |
astro/ps2d.py: use "jet" colormap and improve axis labels
Diffstat (limited to 'astro/ps2d.py')
-rwxr-xr-x | astro/ps2d.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/astro/ps2d.py b/astro/ps2d.py index ce81b5e..ff762b6 100755 --- a/astro/ps2d.py +++ b/astro/ps2d.py @@ -218,11 +218,12 @@ class PS2D: """ x = self.k_perp y = self.k_los - mappable = ax.pcolormesh(x[1:], y[1:], np.log10(self.ps2d[1:, 1:])) + mappable = ax.pcolormesh(x[1:], y[1:], np.log10(self.ps2d[1:, 1:]), + cmap="jet") ax.set(xscale="log", yscale="log", xlim=(x[1], x[-1]), ylim=(y[1], y[-1]), - xlabel=r"k$_{perp}$ [Mpc$^{-1}$]", - ylabel=r"k$_{los}$ [Mpc$^{-1}$]", + xlabel=r"k$_{\perp}$ [Mpc$^{-1}$]", + ylabel=r"k$_{||}$ [Mpc$^{-1}$]", title="2D Power Spectrum") cb = fig.colorbar(mappable, ax=ax, pad=0.01, aspect=30) cb.ax.set_xlabel(r"[%s$^2$ Mpc$^3$]" % self.unit) |