question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rendering a Pore Network with color bar

See original GitHub issue

Hi, Marco.

Thank you for vedo, it is a really nice and convenient lib.

I have been trying to render Pore Networks with vedo inside jupyter notebooks. I have successfully plotted Pore Networks without color bars, but unfortunately I’m struggling to add color bars (to colorize according to pressure or solute concentration for Fluid Flow in the PN).

I feel like I’m missing something very basic here. Would you mind to give me some advice please? I’m providing a MWE below (next comment).

Cheers, Diego

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
volpattocommented, May 19, 2021

Thanks, Marco!

I think we can close this issue since you have worked on it. I will test it in another dev environment I have, and if I find any problem, we can re-open the issue.

Cheers!

1reaction
volpattocommented, May 4, 2021

…oh I see a few weird things there…

1. being a physicist I'm immediately suspicious of the `pore_concentration` and `throat_concentration` spanning so many orders of magnitude... does that really make sense?

Thank you for your observation! Indeed, this example does not make sense, it is just a toy problem to check if I can generate the visualization in notebooks. Maybe I can provide a more realistic example to add to vedo’s gallery (I have to check it, because it is generated by a proprietary software).

2. you cannot assign a single `float` as a color input of Sphere and Cylinder, because `vedo` will try to map this onto the default jet scale in range [0,1]. You should explicitly map the scalar to a [r,g,b] color using `colorMap()`

Hmm… so this is the proper incantation, I see! Thanks!!

maybe this is better?

A lot better!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raw image and pore network model output from sample BFS8 ...
This sample contains a total porosity of 15.2 vol% and an effective porosity of 14.8 vol%. Scale bar = 500 μm. (For interpretation...
Read more >
Image Segmentation and Analysis of Pore Network Geometry ...
We segment the gray-scale images of the rocks into constituent phases, and analyze the geometry of the pore network. The network consists of ......
Read more >
Pore network analysis of Brae Formation sandstone, North Sea
This sample contains a total porosity of 15.2 vol % and an effective porosity of 14.8 vol%. Scale bar = 500 μm. (For...
Read more >
Amira-Avizo Software | Visualizing 3D images - YouTube
In this Amira-Avizo tutorial, the following visualization technics are discussed:- Orthogonal slices, and arbitrary slices 00:35- Isosurface ...
Read more >
Amira-Avizo Software - Pore space analysis - YouTube
Amira-Avizo Software | Pore Network Modeling extension | Pore space analysis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found