Skip to content

Commit

Permalink
MemorySampler: Ensure x axis is uniform when plotting (#8093)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter authored Aug 10, 2023
1 parent df3214b commit 163165b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/diagnostics/memory_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def plot(self, *, align: bool = False, **kwargs: Any) -> Any:
=======
Output of :meth:`pandas.DataFrame.plot`
"""
df = self.to_pandas(align=align) / 2**30
df = self.to_pandas(align=align).resample("1s").nearest() / 2**30
return df.plot(
xlabel="time",
ylabel="Cluster memory (GiB)",
Expand Down

0 comments on commit 163165b

Please sign in to comment.