At the moment I have a figure that looks like this,[![enter image description here](https://i.stack.imgur.com/GTa95.png)](https://i.stack.imgur.com/GTa95.png)

Generated by the code:

```
import matplotlib.pyplot as plt

import numpy as np

data = np.random.rand(20,5)
rows,cols = data.shape

plt.imshow(data, interpolation='nearest', extent=[0.5, 0.5+cols, 0.5,   0.5+cols], cmap='bwr')
plt.show()

```

However I would like to 'fold' this up into a 3D cylinder, joining the left and right edges (as one would do with a sheet of paper). In other words the left edge and the right edges are actually the same edge and so I would like to join them together to form a cylinder.

How would I go about doing this?