import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import pandas as pd
filename = '../../data/old_data.csv'
data = pd.read_csv(filename)
data = data.ix[0:len(data) - 5, :]
coords = data.ix[:, 2:5]
names = data.ix[:, 5]
namemap = {'YELLOW': 'y', 'MAGENTA': 'm', 'BLUECYAN': 'c', 'NEUTRAL': 'k',
    'ORANGE': 'r', 'GREEN': 'g', 'BROWN': 'r', 'RED': 'r', 'PURPLEVIOLET': 'b'}
c = names.apply(lambda x: namemap[x])
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
xs = coords.ix[:, 1]
ys = coords.ix[:, 0]
zs = coords.ix[:, 2]
ax.scatter(xs, ys, zs, c=c, marker='o')
ax.set_xlabel('CIE A*')
ax.set_ylabel('CIE L*')
ax.set_zlabel('CIE B*')
plt.show()

23c9749013c0ee4f103b7b502af607f2a6a4cfa8
<mask token>

<mask token>
ax.scatter(xs, ys, zs, c=c, marker='o')
ax.set_xlabel('CIE A*')
ax.set_ylabel('CIE L*')
ax.set_zlabel('CIE B*')
plt.show()

<mask token>
filename = '../../data/old_data.csv'
data = pd.read_csv(filename)
data = data.ix[0:len(data) - 5, :]
coords = data.ix[:, 2:5]
names = data.ix[:, 5]
namemap = {'YELLOW': 'y', 'MAGENTA': 'm', 'BLUECYAN': 'c', 'NEUTRAL': 'k',
    'ORANGE': 'r', 'GREEN': 'g', 'BROWN': 'r', 'RED': 'r', 'PURPLEVIOLET': 'b'}
c = names.apply(lambda x: namemap[x])
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
xs = coords.ix[:, 1]
ys = coords.ix[:, 0]
zs = coords.ix[:, 2]
ax.scatter(xs, ys, zs, c=c, marker='o')
ax.set_xlabel('CIE A*')
ax.set_ylabel('CIE L*')
ax.set_zlabel('CIE B*')
plt.show()

import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import pandas as pd
filename = '../../data/old_data.csv'
data = pd.read_csv(filename)
data = data.ix[0:len(data) - 5, :]
coords = data.ix[:, 2:5]
names = data.ix[:, 5]
namemap = {'YELLOW': 'y', 'MAGENTA': 'm', 'BLUECYAN': 'c', 'NEUTRAL': 'k',
    'ORANGE': 'r', 'GREEN': 'g', 'BROWN': 'r', 'RED': 'r', 'PURPLEVIOLET': 'b'}
c = names.apply(lambda x: namemap[x])
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
xs = coords.ix[:, 1]
ys = coords.ix[:, 0]
zs = coords.ix[:, 2]
ax.scatter(xs, ys, zs, c=c, marker='o')
ax.set_xlabel('CIE A*')
ax.set_ylabel('CIE L*')
ax.set_zlabel('CIE B*')
plt.show()
