T O P I C R E V I E W |
TorbenS |
Posted - 03/30/2023 : 02:44:04 AM Origin Ver. and Service Release (Select Help-->About Origin): Operating Hello
I use a python script for plotting a contour plot from XYZ data with a user defined template. After plotting I need to go into the details and search the min & max level. Then I need to adjust the colormap again. Here, I use lite blue for negative value up to zero and lite red for 0 up to positive values. Thus, I get a colorcode: Blue = negativ, white = zero, red = positive.
Since everything else is automated by the python script I wonder if I could script this too. Unfortunately I was not able to find Python commands for this operation. Is there a LabTalk function which can do it?
Thanks in advance and kind regards! Torben
Origin Ver. and Service Release (Select Help-->About Origin): 2022b (64 bit) Operating System: Windows 10System: |
2 L A T E S T R E P L I E S (Newest First) |
TorbenS |
Posted - 04/03/2023 : 10:30:39 AM Hello Chao,
sorry for my late reply. Your solution worked perfectly for me. Thank you!
Best, Torben
|
ChaoC |
Posted - 03/30/2023 : 3:52:04 PM Hi Torben,
Set the Fill settings to 3-Color Limited Mixing and save it to your Template. When you use your Python script to plot using the template, it should automatically scale to your Min(blue) and Max(red) with 0 as White.
Example:
Best, Chao |
|
|