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
 Origin Forum
 defining symbols for scatter plot

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
malgoska Posted - 07/16/2014 : 06:55:43 AM
Origin 9.1 (64 bit)
Operating System: windows 8

Hello,
I wonder whether there's a way to do the following:
Let's say I have a worksheet with 4 columns containing different quantities as a function of one x (col(A)). I want to plot several combinations of them (e.g col(B) and col(C), col(C) and col(D), col(B) and col(D)). On each graph I'd like to have the same symbol representing corresponding quantity (let's say blue squares for col(B), red circles for col(C) and blue diamonds for col(D)). Of course I can do this manually, but it would be great if there was a possibility to attach plot type to column of data so that after selecting the columns to plot the symbols and colors would be already defined.
I'd appreciate any ideas how to do this in a more automatic way.
Regards,
Malgorzata
2   L A T E S T    R E P L I E S    (Newest First)
malgoska Posted - 07/16/2014 : 12:31:52 PM
Thank you! This is exactly what I needed :)
Regards,
Malgorzata
Hideo Fujii Posted - 07/16/2014 : 11:03:40 AM
Hi Malgorzata,

You can store the plot attributes in the header rows of the Y column in the worksheet. For example, you can do:

1) Highlight any header row (e.g., Comments), right-click, and choose "Insert: User Parameters" flyout. Rename the name of the new header row by right-clicking it, and choose "Rename" flyout, and enter the name e.g., "color".

2) Enter the attribute value at each column's header row according to the table:
(color): http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:List_of_Colors
(shape): http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:List_of_Symbol_Shapes

3) Make all graphs of data combinations.

4) Run the following script:
doc -e P {  //looping over graph windows
  layer -gu;  //ungroup
  doc -e D {  //looping over plots in the window
    set %c -c value(%c[color]$); //symbol color
    set %c -k value(%c[shape]$); //symbol shape
  }
}
Please see the sample screenshot below:



Hope this serves your project.

--Hideo Fujii
OriginLab

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