Draft
Refactor InHouseWebBasedGrapher to use MEAPlotter for bar plotting#167
Conversation
…APlotter.plot_bars_by_div Agent-Logs-Url: https://github.com/roybens/MEA_Analysis/sessions/33320893-82ab-4a6f-a3e6-d66cd36e89fa Co-authored-by: mandarmp <33731455+mandarmp@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mandarmp
April 12, 2026 04:48
View session
9996be9 to
b33891c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NetworkAnalysis/InHouseWebBasedGrapherduplicated bar-chart-with-significance logic that already exists (better) inIPNAnalysis/MEAPlotter. The two separate plot functions also had inconsistent stats (manual per-mean t-test approximation instead of proper t-test / ANOVA+Tukey).Changes
plot_functions.pyplot_activity_graphsandplot_bar_with_p_values(~240 lines of bespoke matplotlib + manual stats)plot_metrics_graphs— single function delegating toMEAPlotter.plot_bars_by_div():_fig_to_dash_outputs(fig)helper to convert a matplotlib figure into the(html.Img, svg_bytes, png_bytes)tuple Dash expectsplot_activity_graphs/plot_bar_with_p_valuesas thin backward-compatible aliasesplot_isi_graphandmin_max_normalizeunchangedapp_callbacks.pyif 'activity' in filename … elif 'networks' in filename) with a singleplot_metrics_graphs(…)call