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
 How to delete and add the texts in the 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
ytyyutianyun Posted - 02/21/2012 : 9:20:43 PM
Origin Ver.7.5 and Service Release sp5(Select Help-->About Origin):
Operating System:windows 7

I have created 100 graphs
1.I want to delete all the texts(not axis label) in the graphs to make clean
2.Add the custom variables ineach graph.
1st graph text : "X/d=6"
2nd graph text : "X/d=16"
3rd graph text : "X/d=26"
All in all£¬"X/d="is fixed and "6","16"...is varied by the numbers of the graph which express:
N=10*i-4. N is "6","16"... i is the numbers of the graphs
Thanks

For example

Delete -pppp

Add the text "X/d=6"
4   L A T E S T    R E P L I E S    (Newest First)
ytyyutianyun Posted - 02/22/2012 : 9:38:57 PM
Thanks.

In 7.5
loop (i, 1, 8) {
win -a "Graph$(i)";
label -s -p 90 5 "x/d=$(10*i-4)";
}
is right
Thanks for helping
Sam Fang Posted - 02/22/2012 : 9:25:42 PM
It can be as follows.

loop (i, 1, 8);
{
win -a "Graph$(i)";
label -s -p 90 5 "x/d=$(10*i-4)";
}


For -p, x and y represent the percent distance from the top left corner of the layer frame.

Sam
OriginLab Technical Services
ytyyutianyun Posted - 02/22/2012 : 05:07:23 AM
Thanks,but doc -e P means printing the contents of all graph windows
And how can I add text in specified graphs.
For example

I want to add text only in graph 1 to graph 8 from 100 graphs

loop (i, 1, 8);
{
label -s "x/d=$(10*i-4)";
}

?

And then can I put the text in the position I want

Thanks
Sam Fang Posted - 02/22/2012 : 03:42:02 AM
If all the texts use default names, you can use the following script to delete all texts.
label -ra text;


To add a text in each graph, you can use a loop, and activate each graph using script, then use the following script to create a text object.

i=1;
doc -e P
{
label -s "x/d=$(10*i-4)";
i++;
}


Sam
OriginLab Technical Services

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