change to a specific color the node of Sankey Diagram Google Charts - colors

im trying to set all the right nodes to a list of colors and the left nodes to other colors, i mean all left nodes should be a colors of ARRAYCOLORS1 and right nodes ARRAYCOLORS2. I know i can set the nodes colors with sankey.node.colors but my data is variable, so i cant predict the colors to put it into array. I want something like this
A->ARRAYCOLORS1[0] X->ARRAYCOLORS2[0] B->ARRAYCOLORS1[1] Y->ARRAYCOLORS2[1] C->ARRAYCOLORS1[2] D->ARRAYCOLORS1[3]

Related

How to get a color by substracting the other from their combination?

I have a table like this one: https://docs.google.com/spreadsheets/d/1Kn4vfbHwpif7u-6ZTznFpBJFNHhnStETPIQVyQq8xgY/edit#gid=0 with bottom / top color and the Red, Green, Blue (RGB) of the result (where it states 'Preparation' for the bottom color means the canvas so essentially its the RGB of the top color - those rows are the 'single colors').
I am looking for a relation between the double colors and the single colors. E.g. could I somehow subtract one color from their combination and get the other? Either by using the RGB values or using the images in some software?
Note that the type/formula/function/relation that I am looking for will be only for specific single colors and their combinations which I have already measured (do not care if it is valid beyond the dataset that I am working with)

Meshlab non-dispersed vertex Coloring

In meshlab, If I select a vertex and color it with red (per vertex color function), the result becomes
Red is too dispersed.
What I want is just : (image below was edited by photoshop):
How can I do it ?
On triangular meshes, when the color is defined in a per-vertex way, the colors are linearly interpolated across each triangle, so the result is precisely the expected one.
If you need just a way of looking at a few vertices, just enable the visualization of selected vertices and select them.
On the other hand, if you just need to reduce the color's spread, refine the mesh so that the underlying triangles are smaller, and the color is interpolated across a smaller area.
You can get something quite similar to your desired behavior.
The color dispersion is due to Gouraud shading. You can disable it clicking in the tab of face render options and change color button from "vertex" to "face" or "user defined"
To render vertex as "balls with color"
Click on the tab of vertex and choose the option Dot Decorator (1)
Change the size of dots with the Point Size Bar (2)
Let the color buttons in "mesh", not "user defined"

Using Excel VBA to individually color y-axis lables

I'm trying to figure out how to change the color of individual y-axis labels programmatically for a bar chart. Here's what the chart currently looks like:
Here's how I'd like it to look. (The colors on the "RX 5700 XT" lines are in red -- this is via a hasty PhotoShop hack, so this isn't set in stone, just an example of where I'm headed).
The problem is, I can't seem to find a way to programmatically get at the individual text labels. The actual text isn't necessarily hard-coded, but based on matching some pattern I want to change the text colors -- a secondary coding of data, if you will.
Background: This is for my charts at Tom's Hardware, for GPU reviews specifically. In this case, I have all GPUs tested with one CPU colored one way (lighter grey and red), and all GPUs tested with a different CPU colored a different way (darker grey and red). However, I also want to potentially differentiate between AMD and Nvidia GPUs -- so highlight the AMD GPUs in Dark Red text as an example.
There are about 60 charts total, so manually changing colors on each chart after generation would be extremely inefficient. I could just use different bar chart colors, but that also gets messy. Theoretically, I want to get at myChart.Axes(xlCategory).Format.TextFrame2.TextRange ... but TextFrame2 is a read-only property. I recorded a macro where I changed the axis font color, but even that macro fails to play back properly. :\
The axis labels on a chart cannot be colored individually. The axis font color applies to all text in the axis. Individual axis labels cannot be formatted differently. Not in the GUI and not with VBA.
Side note: You may want to review your color choices for the charts. The black/red/white in such close proximity is very hard on the eyes and causes eye strain and flimmer for some people.

Changing KML polygon color over time?

I wrote a program that periodically outputs KML files. These files contain a grid of polygons, always with the same spatial coverage. I want to use the polygon's fill color to represent a data values for each grid cell. I know how to set the fill color of the polygon with the Style tag. Is it possible to change to polygons color over time using the TimeStamp or TimeInterval? If not, is there a way to hide an "old" polygon and draw a "new" polygon at the same location, but with a different color? Is there a better way to represent a grid that has data value for each cell, like a Ground Overlay?
For changing the polygon color, you need to use 3rd party kml parsers like geoxml3.
see this,
changing the color of Polygons from KML rendered using geoxml3 on mouseover

How does dribbble's color search work?

How does dribble's color search work? It's not like other search by color features. What I can't figure out is how they can have search parameters for color variance and color minimum without storing a row for every individual color in an image (which I suppose is possible).
Colors are usually extracted from the image using a histogram computing the density of the colors. Once, you have the top 5/10/15 colors from the image, performing a search is matching the given color against these extracted colors.
To match a given color against other, various techniques are available such as minimizing the euclidean distance between the two colors. More on such techniques can be read at http://en.wikipedia.org/wiki/Color_quantization
Similar strategy is discussed in the blog entry http://mattmueller.me/blog/creating-piximilar-image-search-by-color

Resources