Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swain Lab
aliby
alibylite
Commits
bf18b543
Commit
bf18b543
authored
2 years ago
by
Arin Wongprommoon
Browse files
Options
Downloads
Patches
Plain Diff
[routines/boxplot] Add docstring for plotting function
parent
9df680ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routines/boxplot.py
+35
-0
35 additions, 0 deletions
routines/boxplot.py
with
35 additions
and
0 deletions
routines/boxplot.py
+
35
−
0
View file @
bf18b543
...
@@ -63,6 +63,41 @@ def boxplot(
...
@@ -63,6 +63,41 @@ def boxplot(
plot_title
=
""
,
plot_title
=
""
,
ax
=
None
,
ax
=
None
,
):
):
"""
Draw series of boxplots from an array of time series of traces
Draw series of boxplots from an array of time series of traces, showing the
distribution of values at each time point over time.
Parameters
----------
trace_df : pandas.DataFrame
Time series of traces (rows = cells, columns = time points).
trace_name : string
Name of trace being plotted, e.g.
'
flavin
'
.
unit_scaling : int or float
Unit scaling factor, e.g. 1/60 to convert minutes to hours.
box_color : string
matplolib colour string, specifies colour of boxes in boxplot
xtick_step : int or float
Interval length, in unit time, to draw x axis ticks.
xlabel : string
x axis label.
plot_title : string
Plot title.
ax : matplotlib Axes
Axes in which to draw the plot, otherwise use the currently active Axes.
Returns
-------
ax : matplotlib Axes
Axes object with the heatmap.
Examples
--------
FIXME: Add docs.
"""
plotter
=
_BoxplotPlotter
(
plotter
=
_BoxplotPlotter
(
trace_df
,
trace_df
,
trace_name
,
trace_name
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment