Skip to content

Commit

Permalink
change default color map 'jet' to 'inferno'
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke-takase committed Jun 24, 2024
1 parent b2b503c commit aa8675d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions grasp2alm/beam_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BeamCut:
__post_init__(self): Performs post-initialization tasks.
to_polar(self, copol_axis="x"): Converts the beam
to polar coordinates.
plot(self, pol='co', color_resol=20, figsize=6, cmap="jet",
plot(self, pol='co', color_resol=20, figsize=6, cmap="inferno",
return_fields=False): Plots the beam.
"""
Expand Down Expand Up @@ -143,7 +143,7 @@ def to_polar(self, copol_axis="x"):
beam_polar.stokes[3, :, :] = 2.0 * np.imag(acaxs)
return beam_polar

def plot(self, pol='co', color_resol=20, figsize=6, cmap="jet", return_fields=False):
def plot(self, pol='co', color_resol=20, figsize=6, cmap="inferno", return_fields=False):
"""Plot the beam pattern.
Args:
Expand Down
4 changes: 2 additions & 2 deletions grasp2alm/beam_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BeamGrid:
__post_init__(self): Read and parse the beam grid file.
to_polar(self, copol_axis="x"): Convert the beam grid
to polar coordinates.
plot(self, pol='co', color_resol=20, figsize=6, cmap="jet",
plot(self, pol='co', color_resol=20, figsize=6, cmap="inferno",
return_fields=False): Plot the beam grid.
"""
Expand Down Expand Up @@ -200,7 +200,7 @@ def to_polar(self, copol_axis="x"):
return beam_polar


def plot(self, pol='co', color_resol=20, figsize=6, cmap="jet", return_fields=False):
def plot(self, pol='co', color_resol=20, figsize=6, cmap="inferno", return_fields=False):
"""Plot the beam pattern.
Args:
Expand Down
4 changes: 2 additions & 2 deletions grasp2alm/beam_polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BeamPolar:
Methods:
stokes_rotate(): Rotate the stokes beam.
to_map(nside, nstokes=3, outOftheta_val=0.0): Convert the beam to a map.
plot(stokes="I", color_resol=20, figsize=6, cmap="jet", return_fields=False): Plot the beam.
plot(stokes="I", color_resol=20, figsize=6, cmap="inferno", return_fields=False): Plot the beam.
"""

Expand Down Expand Up @@ -143,7 +143,7 @@ def _get_interp_val(self, theta:np.ndarray, phi:np.ndarray, s:int, interp_method
return value


def plot(self, stokes="I", color_resol=20, figsize=6, cmap="jet", return_fields=False):
def plot(self, stokes="I", color_resol=20, figsize=6, cmap="inferno", return_fields=False):
"""Plot the beam.
Args:
Expand Down
36 changes: 18 additions & 18 deletions notebooks/tutorial.ipynb

Large diffs are not rendered by default.

0 comments on commit aa8675d

Please sign in to comment.