
add colors to Make Traces Different?

erikku
hello,
Make Traces Different is very close to doing what I need, but with two problems. Perhaps there are other solutions in IGOR but I haven't found them yet.
1) I would like to apply MTD to only a subset of the traces on a graph. For instance with a plot having 24 traces, I want the first 12 traces to be colored uniquely, and the second set of 12 to have the same colors as the first (eg trace 1 and 13 are both red, 2 and 14 are slightly lighter, &c.)
2) I would like to add new color indexes/tables, such as Moreland's SmoothCoolWarm. But it's not obvious how to do this.
Thank you for any assistance.
My approach would be to code up a solution to this problem. I'm not so familiar with MTD to comment on whether it is possible to do what you want with that package.
Here are two procedures, one to load Moreland's SmoothCoolWarm and one to do something similar to MakeTracesDifferent (I got this a few years ago from IgorExchange - it's edited slightly). Hopefully this is useful to you. It needs to be edited so that: 1. you use SmoothCoolWarm256 rather than M_colors; 2. the loop goes in cycles that you describe and takes the increments of the colorwave you want.
March 9, 2019 at 12:10 pm - Permalink
sjr51, thank you, that was very helpful. I took it, ran, and eventually figured out how to do what I needed. The following allows you to color a selection of traces in a plot, using all or only a portion of a given Color Table. "SmoothCoolWarm256" can of course be replaced by any desired table.
March 10, 2019 at 01:20 pm - Permalink