Skip to content

Commit

Permalink
fix(to_figure): add top-padding to title
Browse files Browse the repository at this point in the history
  • Loading branch information
devang-chauhan committed Jan 19, 2022
1 parent df2612b commit 14147f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ladybug_charts/to_figure.py
Expand Up @@ -124,7 +124,7 @@ def heat_map(hourly_data: Union[HourlyContinuousCollection, HourlyDiscontinuousC
'y': 1,
'x': 0.5,
'xanchor': 'center',
'yanchor': 'top'
'yanchor': 'top',
}
else:
if title:
Expand All @@ -138,6 +138,7 @@ def heat_map(hourly_data: Union[HourlyContinuousCollection, HourlyDiscontinuousC
l=20, r=20, t=33, b=20),
yaxis_nticks=13,
title=fig_title,
title_pad=dict(t=5)
)
fig.update_xaxes(showline=True, linewidth=1, linecolor="black", mirror=True)
fig.update_yaxes(showline=True, linewidth=1, linecolor="black", mirror=True)
Expand Down

0 comments on commit 14147f1

Please sign in to comment.