Skip to content

Commit

Permalink
space
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukeaso-astron committed Dec 11, 2024
1 parent faa288f commit b4d4b50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plotastrodata/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
plt.ioff() # force to turn off interactive mode


def set_rcparams(fontsize: int = 18, nancolor: str ='w',
def set_rcparams(fontsize: int = 18, nancolor: str = 'w',
dpi: int = 256) -> None:
"""Nice rcParams for figures.
Expand Down Expand Up @@ -742,7 +742,7 @@ def add_contour(self, xskip: int = 1, yskip: int = 1,
axnow.contour(x, y, cnow, np.sort(levels) * sigma, **_kw)
if show_beam and not self.pv:
self.add_beam(beam, beamcolor)

def add_segment(self, ampfits: str = None, angfits: str = None,
Ufits: str = None, Qfits: str = None,
xskip: int = 1, yskip: int = 1,
Expand Down Expand Up @@ -977,7 +977,7 @@ def makegrid(second, mode):
tickvalues = xy2coord(xy, center)
tickvalues = [float(get_sec(t, i)) for t in tickvalues]
tickvalues = np.divmod(tickvalues, 1)
ticklabels = [f'{int(i):02d}{sec}' + f'{j:.{decimals:d}f}'[2: ]
ticklabels = [f'{int(i):02d}{sec}' + f'{j:.{decimals:d}f}'[2:]
for i, j in zip(*tickvalues)]
return ticks, ticksminor, ticklabels

Expand Down

0 comments on commit b4d4b50

Please sign in to comment.