Skip to content

Commit ca4e510

Browse files
fixes in '_explore_state'
1 parent b474f98 commit ca4e510

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pyleida/plotting/_plotting.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ def _explore_state(centroid,rois_labels,occupancy,dwell_times,coords,state_numbe
17261726
axes=axd['upper center'],
17271727
annotate=True,
17281728
black_bg=True if darkstyle else False,
1729-
alpha=0.1,
1729+
alpha=0.3,
17301730
edge_kwargs=edges_lw,
17311731
node_kwargs=None,
17321732
colorbar=False
@@ -1785,12 +1785,12 @@ def _explore_state(centroid,rois_labels,occupancy,dwell_times,coords,state_numbe
17851785
str_length = [len(cond) for cond in np.unique(occupancy.condition)]
17861786
N_conds = np.unique(occupancy.condition).size
17871787

1788-
sns.boxplot(
1788+
sns.barplot(
17891789
x=occupancy.condition,
17901790
y=occupancy.value,
17911791
ax=axd['lower center'],
17921792
color='firebrick',
1793-
errobar='se'
1793+
errorbar='se'
17941794
)
17951795
axd['lower center'].set_ylabel('Occupancy',fontsize=15)
17961796
axd['lower center'].set_xlabel('')
@@ -1804,12 +1804,12 @@ def _explore_state(centroid,rois_labels,occupancy,dwell_times,coords,state_numbe
18041804
#creating boxplot with dwell times
18051805
dwell_times.columns = ['condition','value']
18061806
N_conds = np.unique(dwell_times.condition).size
1807-
sns.boxplot(
1807+
sns.barplot(
18081808
x=dwell_times.condition,
18091809
y=dwell_times.value,
18101810
ax=axd['lower right'],
18111811
color='firebrick',
1812-
errobar='se'
1812+
errorbar='se'
18131813
)
18141814
axd['lower right'].set_ylabel('Dwell time',fontsize=15)
18151815
axd['lower right'].set_xlabel('')

0 commit comments

Comments
 (0)