The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Contour Plot From Two Colormaps
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Sreis

USA
3 Posts

Posted - 03/08/2023 :  2:50:50 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Sorry if there is already a thread for this, but I cannot find one.

I am trying to make a contour plot where each pixel contains two values. One will be linked to a colormap (i.e. parula, so that high values will be yellow and low values blue). The second value will be related to the darkness of the pixel (i.e. 1 = pixel is black, 0 = pixel is the parula color, 0.5 = dark version of the parula color). Is there a way to make this contour plot in Origin?

Thanks for any help!

YimingChen

1651 Posts

Posted - 03/08/2023 :  3:27:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin doesn't have the option to map darkness to a matrix. However, if the data contains only three values for darkness, a possible workaround could be to split the matrix into three separate matrices and then create a contour plot for each matrix using a different color palette. Finally, the three matrices can be merged together to form the complete plot (Stack the three contour layers). Could you share some sample data? Thank you.

James
Go to Top of Page

Sreis

USA
3 Posts

Posted - 03/08/2023 :  5:55:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, here are the two matrices. One should have values from -90 to 90. The other should be from 0 to 1. So, all of the 0's in the upperMatrix would be black and all the rest would be the parula colormap with varying darknesses.



https://my.originlab.com/ftp/forum_and_kbase/Images/ContourPlotafdafsdafdsa.opju

Thanks!

Edited by - Sreis on 03/08/2023 6:01:54 PM
Go to Top of Page

YimingChen

1651 Posts

Posted - 03/09/2023 :  09:40:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you make a black-white contour and uses it as a mask? Then merge the original contour plot and the mask contour plot (menu Graph->Merge Graph Windows). See the attached project file.

https://my.originlab.com/ftp/forum_and_kbase/Images/ContourPlotafdafsdafdsa1.opju

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000