Skip to content

Commit

Permalink
Merge pull request #36 from umccr/bugfix/use-tight-layout-for-plotting
Browse files Browse the repository at this point in the history
Use tight-layout for imaging plot
  • Loading branch information
alexiswl authored Jun 4, 2024
2 parents f668fba + aa9e4e0 commit 8d68cb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repositories/illumina-interop/1.3.1/interop_imaging_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def plot_data(imaging_df: pd.DataFrame, output_png: Path, run_id: str) -> None:
)

# Set title
ax.set_title(f"Pct. Pass Filter vs. Pct. Occupied for run '{run_id}'")
fig.suptitle(f"Pct. Pass Filter vs. Pct. Occupied for run '{run_id}'")

# Set x-axis label
ax.set_xlabel('% Occupied')
Expand All @@ -125,6 +125,9 @@ def plot_data(imaging_df: pd.DataFrame, output_png: Path, run_id: str) -> None:
# Set legend
ax.legend(title='Lane')

# Pack everything up nicely
fig.tight_layout()

# Save plot
fig.savefig(sys.argv[2])

Expand Down

0 comments on commit 8d68cb0

Please sign in to comment.