Skip to content

Commit

Permalink
AMD exa
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Jun 16, 2021
1 parent 1bc9a46 commit 0ad7992
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/plots/utsstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"""
.. _exa-utsstat:
UTS-statistics plot (``UTSStat``)
=================================
UTS-statistics (``UTSStat``)
============================
"""
# sphinx_gallery_thumbnail_number = 3
# sphinx_gallery_thumbnail_number = 4
from eelbrain import *


Expand All @@ -34,18 +34,18 @@
###############################################################################
# Plot the mean and SEM of all trials.

p = plot.UTSStat('cz', ds=ds, frame='t')
p = plot.UTSStat('cz', 'cloze_cat', ds=ds)

###############################################################################
# Split within and between plots.
# Split between different axes, use a ``t``-frame.

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

###############################################################################
# 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)
p = plot.UTSStat("cz", 'cloze_cat', 'length', ds=ds, colors=colors, frame='t', legend=False, axh=3)
legend = plot.ColorList(colors)

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

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

0 comments on commit 0ad7992

Please sign in to comment.