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
 change format of many lines at once

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
martin12 Posted - 05/08/2012 : 08:12:22 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.0.63.988 SR6
Operating System: Windows 7

I guess this is a trivial question, but all examples I found only related to changing the format of the currently active dataset:
I have a graph, let's call it Graph1, with 24 layers and a total of about 500 lines. I would like to change the line width of all these lines. What is the correct command?
Thanks.
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 05/08/2012 : 11:05:11 AM
There is no simple command to do this, but it can be easily done either in the GUI or using script.

GUI Method :
Select a single dataset ( use the new 'A' key in combination with the mouse wheel to zoom in on the graph ), right-click the selection and choose "Save Format as Theme".
Enter an appropriate name (such as Line Width of 3) and optional Description.
Check the List View box, then right-click and Delete all entries except the Line Width. Set the Line Width value and click OK.

This creates a Theme that can now set the Line thickness of any Line or Line + Symbol graph. To use it - Press F7 to open Theme Gallery, select your Theme, select Apply Theme to Current Graph and click Apply Now.

Script method :
// BEGIN SCRIPT
loop(iLayer,1,24)
{
page.active = iLayer;
doc -e D
{
set %C -w 500*.02; // where .02 is the line width
}
}
// END SCRIPT

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