In [4]:
%run chordmap.py
In [24]:
pylab.rcParams['figure.figsize'] = (16.0, 14.0)
In [5]:
lin_mds_4, lin_mds_trans_4 = get_mds(chords_i_dists_square, 4)
In [26]:
import chordmap_vis
In [18]:
chordmap_vis.plot_3d(lin_mds_trans_4)
In [29]:
lin_mds_3_iso, lin_mds_trans_3_iso = get_mds(chords_i_dists_square, 3, metric=False)
In [30]:
chordmap_vis.plot_3d(lin_mds_trans_3_iso)
In [31]:
def dump_projection(filename, coords):
with tables.open_file(filename, 'w') as handle:
data_atom_type = tables.Float32Atom()
filt=tables.Filters(complevel=5)
handle.create_carray("/",'v_coords',
atom=data_atom_type, shape=coords.shape,
title="coords",
filters=filt)[:] = coords
In [32]:
dump_projection("lin_mds_3_iso.h5", lin_mds_trans_3_iso)
In [33]:
lin_mds_trans_3_iso
Out[33]:
In [34]:
dump_projection("lin_mds_4.h5", lin_mds_trans_4)
In [ ]: