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.

masking some cells/ facets while using cellColors

See original GitHub issue

Hi again,

I’ve been trying to use the scalebar and cellColors() to visualise facet-based data and have come across this problem. I have a DTM for which I have a list of values each of which maps to a facet ID. So in theory I could visualise the DTM based data. However within this list I also have facets to which there are no values / data to be shown, which I have by default set to 0.

However, when I showcase the data and put a scalebar in the side, I’m not able to just show only the facets to which I have the data. Since the undesired facets are set to 0., they also appear coloured and makes the visualisation a bit misleading. I tried to use argument ‘alpha’ to set the transparency, but it leads to loosing information about the terrain on the DTM where there are no values. So I’m not sure how to deal with this issue. Sometimes I have values that range from -1 through 2 for the facets, and as such, setting values to 0. will be misleading the visualisation itself. So I’m wondering whether there is a way to still show the coloured facets, but only show the mesh for the undesired facets (those that I’m setting to 0.), while preserving the terrain info.

I do not know if I made myself clear. Please let me know if it’s not clear or you need more information.

Thank you in advance !

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marcomusycommented, Feb 4, 2020

Thanks @ifermion - in the meanwhile i’ll try to figure out why the nan trick is not working for cells…

0reactions
ifermioncommented, Feb 4, 2020

well, finally I managed to get it solved by getting an array of facets mapping to their vertices using mesh.faces() though which I could find the ‘points’ that needed to be deleted and by eventually deleting them by calling deletePoints(). However I think there is much shorter way of doing that. I thought of posting this temporary solution, just in case someone like me runs into the same problem.

Thank you again for quickly reacting and helping out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply or remove cell shading - Microsoft Support
You can add shading to cells by filling them with solid colors or specific patterns. If you have trouble printing the cell shading...
Read more >
Masking of Data in Search Results - Oracle Help Center
To mask PII or sensitive data and to remove list view and facets, you can use the PeopleCode methods and functions. See SetDisplayMask,...
Read more >
How to use =CELLCOLOR() & =VALUESBYCOLORALL() in ...
Learn 2 new Google Sheets functions: CELLCOLOR & VALUESBYCOLORALL. They let you process colored cells in any of your own formulas.
Read more >
How to apply custom sort on cell colors in webi Report
How to apply custom sort on cell colors in webi Report : Requirement : In Web Intelligence 4.1, I have a report with...
Read more >
Add a color mask in Final Cut Pro - Apple Support
In Final Cut Pro, create a color mask to target a specific color for correction. ... With either mask type you can make...
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