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
 Title for top x and right y axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

KatjaS

Norway
2 Posts

Posted - 02/24/2021 :  06:41:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.7.0.188
Operating System: Win10

Hi, I'm having troubles scripting a title for the top x axis and the right y axis of my plot. I'm trying

label -xt Toptitle;
label -yr Righttitle;

and also substituting "lab" for "label". None of them work, though the command "label -xb Bottomtitle;" and "label -yl Lefttitle;" both work fine. The -p, -px, -o etc. options work fine but I'd like to attach them to the axis as axis titles.

I also need to set their font size and rotate the right y title, which I haven't found a way to do yet either. Can anyone help?

Best regards,

Katja

YimingChen

1666 Posts

Posted - 02/24/2021 :  09:31:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The top/right axis title is also a text object with name XT/YR. You can first show it and then adjust its format. Try script below:

XT.SHOW=1;
label -xt Toptitle;
YR.SHOW=1;
label -yr Righttitle;
YR.ROTATE=0;


James
Go to Top of Page

KatjaS

Norway
2 Posts

Posted - 02/24/2021 :  10:41:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

Hi,

The top/right axis title is also a text object with name XT/YR. You can first show it and then adjust its format. Try script below:

XT.SHOW=1;
label -xt Toptitle;
YR.SHOW=1;
label -yr Righttitle;
YR.ROTATE=0;


James



That works, great, thanks :-)
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