Skip to content

Commit

Permalink
Fix plot_observability_constraints_grid time resolution and x labels …
Browse files Browse the repository at this point in the history
…size
  • Loading branch information
HealthyPear committed Nov 14, 2024
1 parent cf514d9 commit 754b6cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iact_estimator/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def plot_observability_constraints_grid(
ax.set_yticks(list(constraint_labels.keys()), constraint_labels.values())

ax.set_xticks(range(len(time_grid)))
ax.set_xticklabels([t.datetime.strftime("%H:%M") for t in time_grid], fontsize=10)
ax.set_xticklabels([t.datetime.strftime("%H:%M") for t in time_grid], fontsize=7)

ax.set_xticks(np.arange(extent[0], extent[1]), minor=True)
ax.set_yticks(np.arange(extent[2], extent[3]), minor=True)
Expand Down
2 changes: 1 addition & 1 deletion src/iact_estimator/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main():
logger.debug("Producing observability constraints grid")
obs_grid_time_res = (
1 * u.h
if (end_datetime - start_datetime).to("day").value < 1
if (end_datetime - start_datetime).to("day").value <= 1
else 1 * u.day
)
_ = plot_observability_constraints_grid(
Expand Down

0 comments on commit 754b6cf

Please sign in to comment.