Skip to content

Commit 0752b4a

Browse files
committed
.
1 parent 4e7102d commit 0752b4a

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

lecilab_behavior_analysis/plot_testing.ipynb

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -89,41 +89,6 @@
8989
"fig = subject_progress_figure(df, perf_window=100, summary_matrix_plot=False)"
9090
]
9191
},
92-
{
93-
"cell_type": "code",
94-
"execution_count": null,
95-
"metadata": {},
96-
"outputs": [],
97-
"source": [
98-
"import lecilab_behavior_analysis.df_transforms as dft\n",
99-
"import lecilab_behavior_analysis.plots as plots\n",
100-
"df_ch = dft.get_center_hold_df(dft.analyze_df(df))\n",
101-
"plots.plot_mean_and_cis_by_date(df_ch, item_to_show=\"number_of_pokes\", group_trials_by=\"year_month_day\", color='tab:green')\n",
102-
"plots.plot_mean_and_cis_by_date(df_ch, item_to_show=\"hold_time\", group_trials_by=\"year_month_day\", color='tab:red')"
103-
]
104-
},
105-
{
106-
"cell_type": "code",
107-
"execution_count": null,
108-
"metadata": {},
109-
"outputs": [],
110-
"source": [
111-
"from lecilab_behavior_analysis.df_transforms import add_trial_of_day_column_to_df, add_day_column_to_df\n",
112-
"import matplotlib.pyplot as plt\n",
113-
"\n",
114-
"df = add_day_column_to_df(df)\n",
115-
"df = add_trial_of_day_column_to_df(df)\n",
116-
"\n",
117-
"tdf = df[df[\"year_month_day\"] == \"2025-06-21\"]\n",
118-
"\n",
119-
"tdf[\"port2_holds\"] = tdf.apply(lambda row: utils.get_trial_port_hold(row, 2), axis=1)\n",
120-
"fig, axs = plt.subplots(2, 1, figsize=(10, 5))\n",
121-
"ax1 = plots.plot_number_of_pokes_histogram(tdf, port_number=2, ax=axs[0])\n",
122-
"ax2 = plots.plot_port_holding_time_histogram(tdf, port_number=2, ax=axs[1])\n",
123-
"\n",
124-
"plt.show()"
125-
]
126-
},
12792
{
12893
"cell_type": "code",
12994
"execution_count": null,
@@ -144,7 +109,7 @@
144109
"from lecilab_behavior_analysis.figure_maker import session_summary_figure\n",
145110
"from lecilab_behavior_analysis.df_transforms import add_trial_of_day_column_to_df, add_day_column_to_df\n",
146111
"# select the session you want to plot\n",
147-
"date = \"2025-06-26\"\n",
112+
"date = \"2025-06-30\"\n",
148113
"df = add_day_column_to_df(df)\n",
149114
"df = add_trial_of_day_column_to_df(df)\n",
150115
"sdf = df[df[\"year_month_day\"] == date]\n",
@@ -215,7 +180,7 @@
215180
],
216181
"metadata": {
217182
"kernelspec": {
218-
"display_name": "Python 3",
183+
"display_name": "dev",
219184
"language": "python",
220185
"name": "python3"
221186
},

0 commit comments

Comments
 (0)