Skip to content

Commit b8c0a42

Browse files
committed
Cosmetic changes to viz utils.
1 parent 2d6098e commit b8c0a42

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

connectivity/con_viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def plot_grouped_connectivity_circle(yaml_fname, con, orig_labels,
9797
subplot=111, include_legend=False,
9898
n_lines=None, fig=None, show=True,
9999
vmin=None, vmax=None, colormap='hot',
100-
colorbar=False):
100+
colorbar=False, colorbar_pos=(-0.3, 0.1)):
101101
'''
102102
Plot the connectivity circle grouped and ordered according to
103103
groups in the yaml input file provided.
@@ -164,7 +164,7 @@ def plot_grouped_connectivity_circle(yaml_fname, con, orig_labels,
164164
node_colors=reordered_colors,
165165
node_edgecolor='white', fig=fig,
166166
fontsize_names=6, vmax=vmax, vmin=vmin,
167-
colorbar_size=0.2, colorbar_pos=(-0.3, 0.1),
167+
colorbar_size=0.2, colorbar_pos=colorbar_pos,
168168
colorbar=colorbar, show=show, subplot=subplot,
169169
indices=indices, title=title)
170170

jumeg_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ def plot_phases_polar(phases):
793793
plot_phases_polar(von)
794794
'''
795795

796+
import matplotlib.pyplot as pl
796797
# plot circular projection
797798
ax = pl.subplot(111, polar=True)
798799
radii = np.ones(phases.shape)
@@ -818,7 +819,7 @@ def plot_histo_fit_gaussian(orig_data, nbins=100, facecol='blue',
818819
mu, sigma = stats.norm.fit(data.flatten()) # get mu and sigma from the data
819820

820821
# plot histogram of the data
821-
n, bins, patches = pl.hist(data.flatten(), nbins, normed=1,
822+
n, bins, patches = pl.hist(data.flatten(), nbins, normed=True,
822823
facecolor=facecol, alpha=0.75)
823824

824825
# add a 'best fit' line

0 commit comments

Comments
 (0)