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
 All Forums
 Origin Forum for Programming
 Forum for Python
 Colormaps & Contour Plots

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000