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
 Setting 'Special Ticks' via Labtalk?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

johannes.kastl

Germany
71 Posts

Posted - 08/30/2012 :  09:29:54 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,

in the axis properties you can set 'special ticks', e.g. put the unit at the second to last tick or put text at the beginning of the axis (In German these ticks are on a tab "Benutzerdefinierte Beschriftung" in the axis properties, may be 'User-defined label' in english?).

Are these settings readable/writable via labtalk?

Origin Ver. and Service Release (Select Help-->About Origin): 8.6.0G SR3, Operating System: WinXP SP3

Thanks in advance,
Johannes

Kathy_Wang

China
159 Posts

Posted - 09/03/2012 :  02:38:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

These settings are not readable/writable via labtalk, I'm afraid that you will have to do this manually.

In case you really need to do this via Labtalk, I think you may use tick location/label from a dataset as a workaround. To do this you'll need to have a column of tick location data and probably another column of tick label, an example would be:


//Suppose you have column C as the tick location data and column D as corresponding tick labels (both in book1, sheet1) and want to change the tick labels of x axis
range ra=[Book1]Sheet1!col(C);
layer.x.TicksByData$=ra;
range rb=[Book1]Sheet1!col(D);
layer.x.label.dataset$=rb;
layer.x.label.type = 8;


Kathy
Originlab

Edited by - Kathy_Wang on 09/03/2012 02:53:06 AM
Go to Top of Page

johannes.kastl

Germany
71 Posts

Posted - 09/03/2012 :  04:08:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Kathy,

thanks for your answer. Would be nice if the possiblity could be included in Origin, it would make customizing graphs easier.

Thanks for your workaround, but it seems to be as much work as setting the special ticks manually...;-)

Regards,
Johannes
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