Author |
Topic  |
|
Neena1695
Canada
117 Posts |
Posted - 07/21/2021 : 3:57:37 PM
|
Origin Ver: Origin Pro 2021
How to color map a subset of plotted data?

Many thanks, Neena |
|
snowli
USA
1411 Posts |
Posted - 07/21/2021 : 4:00:41 PM
|
Sorry, maybe i don't fully understand your question. Do u mean for every 200 points of plot, u want to color it based on info. in column D.
If so, you may have to make a new column with color for each row of value in column A&B.
Maybe you can use Cluster gadget with line plot. Select the subrange u want to color. Click Create Categories button. set Category=2. Check color it by category. Repeat it for all subranges u want to color.
Thanks, Snow |
 |
|
Neena1695
Canada
117 Posts |
Posted - 07/21/2021 : 4:54:42 PM
|
Hi Snow,
Sorry, let me clarify.
I do not have values in Column D (color map category) corresponding to every row in column A and B.
Is this possible to achieve color mapping this way?
Thanks, Neena |
 |
|
snowli
USA
1411 Posts |
Posted - 07/21/2021 : 4:57:43 PM
|
That's why i am wondering if u can use Cluster gadget on graph for it. Once u plot graph, u can use cluster gadget to color a subset of data region.
It seems only some subregion in D is set to 5. So u can use cluster gadget to select the region and color it differently from other parts.
Thanks, Snow |
 |
|
Neena1695
Canada
117 Posts |
Posted - 07/21/2021 : 5:13:38 PM
|
Hi Snow,
I have 1500 data points to color in that plot; selecting those regions would be time consuming. Any other suggestion?
Thank you again, Neena |
 |
|
snowli
USA
1411 Posts |
Posted - 07/21/2021 : 5:21:11 PM
|
Do you mind sharing the opju so i can see how many regions u want to color differently.
Thanks, Snow |
 |
|
Neena1695
Canada
117 Posts |
|
snowli
USA
1411 Posts |
Posted - 07/22/2021 : 09:53:50 AM
|
Hello,
Please try the attached opju https://my.originlab.com/ftp/forum_and_kbase/Images/Nterm1_mod.opju
Basically we added formula in Column E and F to calculate the range value in col(E), then use table() to read its corresponding color code and put it to column F. color code in F matches the corresponding x & y in column A&B.
BTW, not sure why you set column D as categorical, i turn it off so it's treated as number.

Thanks, Snow |
 |
|
Neena1695
Canada
117 Posts |
Posted - 07/22/2021 : 3:30:18 PM
|
Thank you Snow! Origin is so powerful! |
 |
|
|
Topic  |
|