Skip to content

Commit

Permalink
scatter_da uses scatter_burst_data
Browse files Browse the repository at this point in the history
  • Loading branch information
harripd committed Jun 1, 2024
1 parent 6b05a68 commit 4e96458
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 145 deletions.
9 changes: 5 additions & 4 deletions fretbursts/burst_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2129,14 +2129,15 @@ def scatter_fret_width(d, i=0, ax=None):


@_ax_intercept
def scatter_da(d, i=0, alpha=0.3, ax=None):
def scatter_da(d, i=0, alpha=0.3, ax=None, **kwargs):
"""Scatterplot of donor vs acceptor photons (nd, vs na) in each burst."""
nd = np.concatenate(d.nd) if i is None else d.nd[i]
na = np.concatenate(d.na) if i is None else d.na[i]
ax.plot(nd, na, 'o', mew=0, ms=3, alpha=alpha, color='blue')
plot_kwargs = _normalize_kwargs(dict(lw=0, s=17, alpha=alpha, c='blue'), kind='scatter')
plot_kwargs.update(_normalize_kwargs(kwargs, kind='scatter'))
scat = scatter_burst_data(d, 'nd', 'na', ax=ax, **plot_kwargs)
ax.set_xlabel('# donor ph.'); ax.set_ylabel('# acceptor ph.')
ax.set_xlim(-5, 200)
ax.set_ylim(-5, 120)
return scat


@_ax_intercept
Expand Down
140 changes: 0 additions & 140 deletions fretbursts/utils/git.py

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ requires-python = ">= 3.7"
dependencies = [
"importlib_metadata;python_version<='3.9'",
"numpy>=1.19",
"matplotlib>=3.0.1",
"scipy>=1.2",
"pandas >= 0.23",
"seaborn>=0.11.1",
Expand Down

0 comments on commit 4e96458

Please sign in to comment.