Commit f365ecd1 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Avoid numpy warning

parent 1af3793d
......@@ -211,7 +211,7 @@ def colourBarBitmap(cmap,
buf = canvas.tostring_argb()
ncols, nrows = canvas.get_width_height()
bitmap = np.fromstring(buf, dtype=np.uint8)
bitmap = np.frombuffer(buf, dtype=np.uint8)
bitmap = bitmap.reshape(nrows, ncols, 4).transpose([1, 0, 2])
# the bitmap is in argb order,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment