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
 LabTalk Forum
 Set a Palette in line plot with labtalk

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
Pikno123 Posted - 01/31/2024 : 07:05:24 AM
Hello everyone, This is my first time posting, here I have a question about labtalk, I already used the code "plotxy iy:=(1:10,11:20) , plot:=200"to create a line plot,but I cant set a Palette like Fire or Rainbow with the code"palApply igl:=[Graph2]Layer1 fname:=system.path.program$+"Palettes\Fire.pal"".

But, I have tried to set the palettes in 3D Colormap surface or something else with the same code,it did work,so should I use another code or the line plot palettes cant be set with labtalk? In the past, I used to manually set up palettes for line diagrams,now I want to try something different.
6   L A T E S T    R E P L I E S    (Newest First)
Pikno123 Posted - 01/31/2024 : 1:43:36 PM
quote:
Originally posted by YimingChen

Please upgrade your Origin.



The Window Limit is so fatal to me......maybe I should find another way to solve this problem, but still thank you!
YimingChen Posted - 01/31/2024 : 11:13:09 AM
Please upgrade your Origin.
Pikno123 Posted - 01/31/2024 : 10:54:47 AM
quote:
Originally posted by YimingChen

Is the graph in the front? By the way, what version of Origin do you have?




Yes, and I also tried running the code in its own Script Panel, but my code can only work on the other types of graph except the line plot. My version is OriginPro 2021, maybe I need a later one?
YimingChen Posted - 01/31/2024 : 10:48:57 AM
Is the graph in the front? By the way, what version of Origin do you have?

Pikno123 Posted - 01/31/2024 : 08:55:00 AM
[quote]Originally posted by YimingChen

Can you try the script below?

plotxy iy:=(1:10,11:20) , plot:=200;
layer.plot1.colorinc=3;
layer.plot1.colorlist$=Fire.pal;


James





Thanks for your reply,I have tried your code,I'm sorry it didn't work,and I think the origin cant find the object of 'layer.plot1'.
YimingChen Posted - 01/31/2024 : 08:43:35 AM
Can you try the script below?

plotxy iy:=(1:10,11:20) , plot:=200;
layer.plot1.colorinc=3;
layer.plot1.colorlist$=Fire.pal;


James

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