Skip to content

Commit

Permalink
UPDATE result-plotter settings (to fit y-axis tick labels)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Feb 2, 2017
1 parent 4d6f6e8 commit 11ce763
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion eelbrain/_experiment/mne_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3262,7 +3262,7 @@ def load_raw(self, add_bads=True, preload=False, ndvar=False, decim=1, **kwargs)
def _load_result_plotter(self, test, tstart, tstop, pmin, parc=None,
mask=None, samples=10000, data='source',
sns_baseline=True, src_baseline=None,
colors=None, labels=None, h=1.1, rc=None,
colors=None, labels=None, h=1.2, rc=None,
dst=None, vec_fmt='svg', pix_fmt='png', **kwargs):
"""Load cluster-based test result plotter
Expand Down
12 changes: 6 additions & 6 deletions eelbrain/_result_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'font.family': 'sans-serif',
'font.sans-serif': 'Helvetica',
'font.size': 9,
'figure.subplot.top': 0.975,
'figure.subplot.top': 0.95,
'legend.fontsize': 6,
'legend.frameon': False}
for key in mpl.rcParams:
Expand Down Expand Up @@ -55,10 +55,10 @@ class ClusterPlotter(object):
Labels for data in a ``{cell: label}`` dictionary (the default is to
use cell names).
h : scalar
Plot height in inches (default 1.1).
Plot height in inches (default 1.2).
rc : dict
Matplotlib rc-parameters dictionary (the default is optimized for the
default plot size ``h=1.1``).
default plot size ``h=1.2``).
Notes
-----
Expand All @@ -67,7 +67,7 @@ class ClusterPlotter(object):
reloading the data.
"""
def __init__(self, ds, res, colors, dst, vec_fmt='pdf', pix_fmt='png',
labels=None, h=1.1, rc=None):
labels=None, h=1.2, rc=None):
self.rc = RC.copy()
if rc is not None:
self.rc.update(rc)
Expand Down Expand Up @@ -243,7 +243,7 @@ def _get_data(self, model, sub, subagg):

return ds, model, modelname

def plot_values(self, ids, model, ymax, ymin=0, dpi=300, sub=None,
def plot_values(self, ids, model, ymax, ymin, dpi=300, sub=None,
subagg=None, cells=None, pairwise=False, colors=None,
prefix=None, w=None, filter=None):
"""Plot values in cluster
Expand All @@ -260,7 +260,7 @@ def plot_values(self, ids, model, ymax, ymin=0, dpi=300, sub=None,
ymax : scalar
Top of the y-axis.
ymin : scalar
Bottom of the y axis (default 0).
Bottom of the y axis.
dpi : int
Figure DPI.
sub : str
Expand Down

0 comments on commit 11ce763

Please sign in to comment.