Skip to content

Commit 187ae4c

Browse files
committed
fix plot, remove cirle
1 parent 32ca2dc commit 187ae4c

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

circle.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

figrecipes/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def bar(
10621062
if labels is None:
10631063
labels = [None] * len(y)
10641064
else:
1065-
y = data.as_matrix().tolist()
1065+
y = data.to_numpy().tolist()
10661066
x = [data.columns.values] * len(y)
10671067

10681068
if colors is not None:
@@ -1372,7 +1372,7 @@ def heatmap_basic(
13721372
if not self.df:
13731373
raise ValueError("Either data or self.df (set in initializer)" "must be defined.")
13741374
else:
1375-
data = self.df.as_matrix()
1375+
data = self.df.to_numpy()
13761376
x_labels = self.df.columns.values.tolist()
13771377
y_labels = self.df.index.values.tolist()
13781378

@@ -1791,6 +1791,6 @@ def triangle(
17911791
# data[col] = scaler.fit_transform(data[col])
17921792
#
17931793
# if normalize: # TODO: maybe enforce this? because if not normalized, this plot doesn't make much sense
1794-
# sums = data[cols].as_matrix().sum(axis=1)
1794+
# sums = data[cols].to_numpy().sum(axis=1)
17951795
# for col in data:
17961796
# data[col] /= sums

0 commit comments

Comments
 (0)