@@ -94,11 +94,14 @@ def get_vectors(fct, n, h=100, dtype=numpy.float64):
94
94
cc ['N' ] = cc ['x_name' ]
95
95
96
96
fig , ax = plt .subplots (2 , 2 , figsize = (10 , 10 ))
97
- cc [cc .N <= 1100 ].pivot ('N' , 'fct' , 'average' ).plot (
97
+ cc [cc .N <= 1100 ].pivot (
98
+ index = 'N' , columns = 'fct' , values = 'average' ).plot (
98
99
logy = True , logx = True , ax = ax [0 , 0 ])
99
- cc [cc .fct != 'dot_product' ].pivot ('N' , 'fct' , 'average' ).plot (
100
+ cc [cc .fct != 'dot_product' ].pivot (
101
+ index = 'N' , columns = 'fct' , values = 'average' ).plot (
100
102
logy = True , ax = ax [0 , 1 ])
101
- cc [cc .fct != 'dot_product' ].pivot ('N' , 'fct' , 'average' ).plot (
103
+ cc [cc .fct != 'dot_product' ].pivot (
104
+ index = 'N' , columns = 'fct' , values = 'average' ).plot (
102
105
logy = True , logx = True , ax = ax [1 , 1 ])
103
106
ax [0 , 0 ].set_title ("Comparison of cython ddot implementations" )
104
107
ax [0 , 1 ].set_title ("Comparison of cython ddot implementations"
@@ -130,9 +133,9 @@ def get_vectors(fct, n, h=100, dtype=numpy.float64):
130
133
cc ['N' ] = cc ['x_name' ]
131
134
132
135
fig , ax = plt .subplots (1 , 2 , figsize = (10 , 4 ))
133
- cc .pivot ('N' , 'fct' , 'average' ).plot (
136
+ cc .pivot (index = 'N' , columns = 'fct' , values = 'average' ).plot (
134
137
logy = True , ax = ax [0 ])
135
- cc .pivot ('N' , 'fct' , 'average' ).plot (
138
+ cc .pivot (index = 'N' , columns = 'fct' , values = 'average' ).plot (
136
139
logy = True , logx = True , ax = ax [1 ])
137
140
ax [0 ].set_title ("Comparison of cython sdot implementations" )
138
141
ax [1 ].set_title ("Comparison of cython sdot implementations" )
0 commit comments