Skip to content

Commit

Permalink
FIX: fan plot colorbar spacing adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
carleyjmartin committed Aug 6, 2024
1 parent b812a9d commit f738911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydarn/plotting/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def plot_fan(dmap_data: List[dict], ax=None, ranges=None,
extend = 'both'

if cax is None:
cax = ax.inset_axes([1.04, 0.0, 0.05, 1.0])
cax = ax.inset_axes([1.1, 0.0, 0.05, 1.0])
cb = ax.figure.colorbar(mappable, ax=ax, cax=cax, extend=extend,
ticks=ticks)

Expand Down Expand Up @@ -666,7 +666,7 @@ def plot_fan_input(data_array: list = [], data_datetime: dt.datetime = [],
extend = 'both'

if cax is None:
cax = ax.inset_axes([1.04, 0.0, 0.05, 1.0])
cax = ax.inset_axes([1.1, 0.0, 0.05, 1.0])
cb = ax.figure.colorbar(mappable, ax=ax, cax=cax, extend=extend,
ticks=ticks)

Expand Down

0 comments on commit f738911

Please sign in to comment.