# Data Visualization

**URL:** https://discourse.vtk.org/t/data-visualization/10060
**Category:** Support
**Created:** [December 4, 2022, 2:29am UTC](https://discourse.vtk.org/t/data-visualization/10060 "2022-12-04T02:29:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Frankenstein](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/0ea827/32.png) [@Frankenstein](https://discourse.vtk.org/u/Frankenstein)
#### Post date: [December 4, 2022, 2:29am UTC](https://discourse.vtk.org/t/data-visualization/10060/1 "2022-12-04T02:29:37Z")

</div>

Hi,guys,I am using VTK(c++) to visualize some results,I need to visualize the distribution of oil film forces on a cylinder surface，  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/e/ed5290c6929247443932ede3e0a01b6d3337b72a.png) just like this picture.I already have a two-dimensional array of pressure data that I need to represent on the surface of the cylinder.I’d like your help if you have an idea how to do it or already worked on something similar

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [December 6, 2022, 1:21pm UTC](https://discourse.vtk.org/t/data-visualization/10060/2 "2022-12-06T13:21:54Z")

</div>

Hello, is your 2D-array the data of your “unrolled” cylinder?

---

<div class="post-metadata">

### Author: ![Frankenstein](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/0ea827/32.png) [@Frankenstein](https://discourse.vtk.org/u/Frankenstein)
#### Post date: [December 6, 2022, 1:29pm UTC](https://discourse.vtk.org/t/data-visualization/10060/3 "2022-12-06T13:29:01Z")

</div>

> [@Paulo\_Carvalho](#):
>
> Hello, is your 2D-array the data of your “unrolled” cylinder

actually，my 2D-array data can only be used for XYZ coordinate plotting，just like this

 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/902f4e921537c3a55ee4a68166bfea61032c39e6.png)

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [December 6, 2022, 1:50pm UTC](https://discourse.vtk.org/t/data-visualization/10060/4 "2022-12-06T13:50:41Z")

</div>

So, your task is to roll your flat geometry into a cylinder like wraping a label around a bottle. Please, take a look at this: [matlab - Bending a plane into a closed surface/cylinder - Stack Overflow](https://stackoverflow.com/questions/26408863/bending-a-plane-into-a-closed-surface-cylinder) . You can use the pressure/Z value as a radius multiplier to deform the cylinder to your liking.

If you’re familiar with science-oriented high-level langages like Python/NumPy, R, Julia, etc. you will find the code easy to follow and to implement in C++. If you’re already on Python, the better.

---

<div class="post-metadata">

### Author: ![Frankenstein](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/0ea827/32.png) [@Frankenstein](https://discourse.vtk.org/u/Frankenstein)
#### Post date: [December 6, 2022, 2:01pm UTC](https://discourse.vtk.org/t/data-visualization/10060/5 "2022-12-06T14:01:10Z")

</div>

appreciative of advice.
