Skip to content

Commit

Permalink
adjust legend sizes to make them a bit smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Dukestep committed Jan 17, 2025
1 parent 35dfac6 commit cb3d4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geomet_climate/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def generate_legend(layer_info, output_dir):
min_value = style_json[0]['name'].split(' ')[0]
max_value = style_json[-1]['name'].split(' ')[-1]

fig = Figure(figsize=(2, 5))
fig = Figure(figsize=(1,5))
# when moving to ubuntu 18.04 and remove add_subplots
# ax = fig.subplots()
ax = fig.add_subplot(121)
Expand Down Expand Up @@ -115,7 +115,7 @@ def generate_legend(layer_info, output_dir):
bounds = layer_info['bounds']
vals = np.ones((1, 4))

fig = Figure(figsize=(2, 6))
fig = Figure(figsize=(1, 6))
# when moving to ubuntu 18.04 and remove add_subplots
# ax = fig.subplots()
ax = fig.add_subplot(121)
Expand Down

0 comments on commit cb3d4f6

Please sign in to comment.