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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 color palette via LabTalk?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peroma

Germany
26 Posts

Posted - 06/10/2003 :  04:08:56 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi forum,

I try to create a symbol plot via LabTalk from scratch. Is it possible to link the color of the symbols to another column?
The command:
set dataset -c value
does not give the right results, since this command links the column with the index of the color (1=black, 2=red, ...) and does not create a continuous color gradient with a min- and a max-value.
In addition to creating the color-palette I also want to manipulate the palette. Is this possible with LabTalk or Origin C?

Thanks
Peter

Mike Buess

USA
3037 Posts

Posted - 06/10/2003 :  4:58:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Peter,

I haven't tried anything like that but you might find some pointers in this forum post.

Mike Buess
Origin WebRing Member
Go to Top of Page

peroma

Germany
26 Posts

Posted - 06/12/2003 :  09:57:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

thank you for your response. You showed me,how to chance the colors of the normal color palette, where 1=black, 2=red, 3=green... I want to do something quite different: If you open the "symbol box" in Origin you will find 7 choices to set the color. The last 3 of them are associated with the values of another column:
  • Index
  • RGB
  • palette

I have to choose "palette" since my values are all between "0" and "1". When this option is active, there will another "folder" for the box, that is call "color palette" (this is the translation from the german version and I hope it is correct). I want to manipulate the entries in this folder by any script.

So the question is: Do you, or anybody out there know how to do this? Or has OriginLab not implemented the access to these varables?

Thanks for any help

Peter
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 06/12/2003 :  12:20:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Similar to your previous post about size indexing, you may want to create a template in which the symbol color is set to "RGB" instead of "indexing"(i.e., Palette), though you probably need to transform your color index value in terms of RGB=Red+(256*Green)+(65536*Blue) such as if you want to intensify the green hue a level, you add 255, etc. Hope I didn't misunderstand what you want to do.

--Hideo

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000