Changeset 596 for mds-and-trees
- Timestamp:
- 08/24/16 03:52:38 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mds-and-trees/mds_plot.py
r565 r596 1 1 #!/usr/bin/env python3 2 2 # -*- coding: utf-8 -*- 3 3 4 import sys 4 5 import numpy as np 5 6 from sklearn import manifold 7 8 #to make it work in console, http://stackoverflow.com/questions/2801882/generating-a-png-with-matplotlib-when-display-is-undefined 9 #import matplotlib 10 #matplotlib.use('Agg') 11 6 12 import matplotlib.pyplot as plt 7 13 from mpl_toolkits.mplot3d import Axes3D 8 14 from matplotlib import cm 9 15 import argparse 16 17 18 10 19 11 20 def rand_jitter(arr):
Note: See TracChangeset
for help on using the changeset viewer.