Skip to content

Commit

Permalink
EXA
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Jun 16, 2021
1 parent 9881792 commit 6a82564
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/plots/utsstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
============================
"""
# sphinx_gallery_thumbnail_number = 4
# sphinx_gallery_thumbnail_number = 5
from eelbrain import *


Expand All @@ -32,18 +32,18 @@
###############################################################################
# Plot the mean and SEM by condition:

p = plot.UTSStat('cz', 'cloze_cat', ds=ds)
p = plot.UTSStat('cz', 'cloze_cat', ds=ds, axh=3)

###############################################################################
# Split between different axes and use a ``t``-frame:

p = plot.UTSStat('cz', 'cloze_cat', 'length', ds=ds, frame='t', axh=3)
p = plot.UTSStat('cz', 'cloze_cat', 'length', ds=ds, frame='t', axh=2)

###############################################################################
# Colors can also be set using the within-plot category only:

colors = plot.colors_for_oneway(['high', 'low'])
p = plot.UTSStat("cz", 'cloze_cat', 'length', ds=ds, colors=colors, frame='t', legend=False, axh=3)
p = plot.UTSStat("cz", 'cloze_cat', 'length', ds=ds, colors=colors, frame='t', legend=False, axh=2)
legend = plot.ColorList(colors)

###############################################################################
Expand All @@ -56,4 +56,4 @@
('low', 'short'): plot.Style((0.5, 0.5, 1), linestyle='--'),
}

p = plot.UTSStat("cz", 'cloze_cat % length', ds=ds, colors=colors, frame='t', top=1e-6)
p = plot.UTSStat("cz", 'cloze_cat % length', ds=ds, colors=colors, frame='t', top=1e-6, axh=3)

0 comments on commit 6a82564

Please sign in to comment.