Skip to content

Commit

Permalink
Added title to plot formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-polk committed Nov 30, 2024
1 parent 5fd3b36 commit 23834f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fluorescence_assay/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ def load_data(self, Measurement: Measurements, *args, **kwargs) -> None:
def format_plot(
self,
axes: matplotlib.axes._axes.Axes,
title: Optional[str] = None,
xlim: Optional[list[float]] = None,
ylim: Optional[list[float]] = None,
xlabel: Optional[str] = None,
ylabel: Optional[str] = None,
square: Optional[bool] = False,
):

if title is not None:
axes.set_title(title)

if xlim is not None:
axes.set_xlim(xlim)
Expand Down

0 comments on commit 23834f5

Please sign in to comment.