T O P I C R E V I E W |
Sreis |
Posted - 03/08/2023 : 2:50:50 PM 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! |
3 L A T E S T R E P L I E S (Newest First) |
YimingChen |
Posted - 03/09/2023 : 09:40:14 AM 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
|
Sreis |
Posted - 03/08/2023 : 5:55:34 PM 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! |
YimingChen |
Posted - 03/08/2023 : 3:27:21 PM 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 |