I am writing a python program to experiment with an academic idea. Look at the resulting image that the program generates:

Thick skeletal lines in the middle of the sheet are what you need to visualize. Each segment of skeletal lines has a meaning associated with it, in the above image (drawn by pycairo ) different shades of gray are used for visualization, a lighter color means a higher value, black lines indicate that the lines have a value of 0 with them. The problem is that visualization using colors in this case is very unintuitive for the human eye, it would be much better to visualize the values in 3D, as shown below (taken from the article):

the left image is a three-dimensional visualization of the right, the values associated with the lines are visualized as the height of adjacent walls in 3D.
What is the best library for this? I do not want to invest a lot of time in this, so a small library is recommended.
source share