Changeset 596


Ignore:
Timestamp:
08/24/16 03:52:38 (8 years ago)
Author:
Maciej Komosinski
Message:

Uncomment to make it work with no graphical backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mds-and-trees/mds_plot.py

    r565 r596  
    11#!/usr/bin/env python3
    22# -*- coding: utf-8 -*-
     3
    34import sys
    45import numpy as np
    56from 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
    612import matplotlib.pyplot as plt
    713from mpl_toolkits.mplot3d import Axes3D
    814from matplotlib import cm
    915import argparse
     16
     17
     18
    1019
    1120def rand_jitter(arr):
Note: See TracChangeset for help on using the changeset viewer.