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
 Changing symbol size of curves on many graphs

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
DrMorbid Posted - 08/26/2014 : 2:18:15 PM
Hello,

is there any way, either manual or via Labtalk, to quickly change the symbol size (and line width) on all curves on a single graph? The problem is I have written a Labtalk script that generates e.g. 10+ graphs for me, but graph themes somehow do not change the linewidth and symbol size on the curves. The curves are all inside a single layer on each graph. Thank you for helping me!
4   L A T E S T    R E P L I E S    (Newest First)
DrMorbid Posted - 08/28/2014 : 2:58:12 PM
Thank you very much Zheng, you are great!
lkb0221 Posted - 08/28/2014 : 12:23:27 PM
Hi,

You can read the window name, layer index and dataset name that been plotted like the following:

doc -e LP {
  string WindowName = %H; // Get current processed graph window short name
  int LayerIndex = page.active; // Get current layer index number
  doc -e DY{
    string DataPlotName = %C; // Get current dataset name
    ...
  }
}

Then you can use conditions like if or switch to customize the curve base on the infos you got.
If you just want color and type to be different in each layer, you can use the following script:

doc -e LP{
  layer -g; // group all plots in the layer, increment will be applied automatically
}

Or:

doc -e LP{
  int Count = 2; // Begin at 2 because color#1 is black
  doc -e DY{
    set %C -c $(Count); // Set color
    set %C -k $(Count-1); // Set symbol shape
    Count++;
  }
}

Hope this would help.

Zheng
OriginLab
DrMorbid Posted - 08/27/2014 : 5:58:30 PM
Thank you very much, this worked!

Could I also put inside this loop a command to make the line colour and symbol colour and also the symbol type to vary from curve to curve? Apologies for these simple questions, I'm a beginner, but have made much progress in recent days.
lkb0221 Posted - 08/26/2014 : 2:55:13 PM
Hi,

You can use a doc -e LP {doc -e DY {}} loop to go through all graph plots to set the line width and symbol size.

Zheng
OriginLab

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