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
 script to generate symbol color by index

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
Karsten8 Posted - 09/10/2024 : 10:22:25 AM
Origin Ver. and Service Release: 2024b
Operating System: Windows Server 2022

Dear Origin-Team,

I want to plot a graph and use the column N("devicename") to
change the color of the symbols depending on their text in this column.

What do I have to add to the script to implement these color modifications. I have to set:
- change the color index from single color to plot by points
- be able to target the color list (here I use clasic)
- set the color option to index and defince the column N("devicename") as index-source

Thats the script I use so far without the index-color-column option:
plotxy iy:=("V10")[($(varstart)):$(varend)] plot:=206 color:=$(varcolor) legend:=0 o:=[Key1]1!;

Is there a possibility to get the script that is needed to generate a graph? For example I have a modified graph and now I can ask origin: give me the code to generate this graphe with its currents settings.

Thanks and best regards,

Karsten8.
2   L A T E S T    R E P L I E S    (Newest First)
aplotnikov Posted - 09/11/2024 : 02:46:10 AM
I'm not quite sure what exactly is needed, but it may be about functions to handle categorical datasets:
https://www.originlab.com/doc/en/LabTalk/ref/Category-func
https://www.originlab.com/doc/LabTalk/ref/Catindex-func
https://www.originlab.com/doc/en/LabTalk/ref/Cattext-func
etc.

YimingChen Posted - 09/10/2024 : 1:57:07 PM
To index symbol color to a column, you can try the example script:
set %C -csen Book1_E;

https://www.originlab.com/doc/LabTalk/ref/Set-cmd#Option_for_Data_Plots

You can load a saved graph template with desired settings in plotxy xfunction:
https://www.originlab.com/doc/en/X-Function/ref/plotxy

James


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