Skip to content

Commit 0005ab4

Browse files
committed
Fix agg_buffer_to_array.py example
1 parent 0c6a533 commit 0005ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/agg_buffer_to_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# grab the pixel buffer and dump it into a numpy array
1313
buf = fig.canvas.buffer_rgba()
1414
l, b, w, h = fig.bbox.bounds
15-
X = np.frombuffer(buf, np.uint8)
15+
X = np.fromstring(buf, np.uint8)
1616
X.shape = h,w,4
1717

1818
# now display the array X as an Axes in a new figure

0 commit comments

Comments
 (0)