Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
A Comsol tip: How to create your own color table
Posted 30 juil. 2010, 03:07 UTC−4 2 Replies
Please login with a confirmed email address before reporting spam
Hey All,
I always wanted to have my own color tables, and now I do :) Here's how:
Look under COMSOL4.0a/data/colortables
You will see lot of files which you're familiar with the name. Now duplicate one, and call it waterstyle.txt.
If you open it, you will see something like this:
% Continuous
0 0 0.5
0 0 1
0 0.5 1
0 1 1
0.5 1 0.5
1 1 0
1 0.5 0
1 0 0
0.5 0 0
These are RGB values on each rows. You can check by clicking here: bit.ly/b1wa8Z
Well, the rest is easy. Create your own numbers and then restart Comsol. I use it to have reverse order of color table, e.g. to imitate the "reverse" option we had in Comsol 3.5.
Have fun,
Danial
I always wanted to have my own color tables, and now I do :) Here's how:
Look under COMSOL4.0a/data/colortables
You will see lot of files which you're familiar with the name. Now duplicate one, and call it waterstyle.txt.
If you open it, you will see something like this:
% Continuous
0 0 0.5
0 0 1
0 0.5 1
0 1 1
0.5 1 0.5
1 1 0
1 0.5 0
1 0 0
0.5 0 0
These are RGB values on each rows. You can check by clicking here: bit.ly/b1wa8Z
Well, the rest is easy. Create your own numbers and then restart Comsol. I use it to have reverse order of color table, e.g. to imitate the "reverse" option we had in Comsol 3.5.
Have fun,
Danial
2 Replies Last Post 24 juil. 2016, 17:16 UTC−4