Skip to content

Commit

Permalink
improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaprins committed Feb 6, 2025
1 parent 69a0a6e commit 7701aa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions movement/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,10 @@ def trajectory(
for key, value in DEFAULT_PLOTTING_ARGS.items():
kwargs.setdefault(key, value)

colorbar = False
if "c" not in kwargs:
kwargs["c"] = plot_point.time
colorbar = True
else:
colorbar = False

# Plot the scatter, coloring by time or user-provided color
sc = ax.scatter(
Expand Down

0 comments on commit 7701aa3

Please sign in to comment.