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
 Setting 'Special Ticks' via Labtalk?

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
johannes.kastl Posted - 08/30/2012 : 09:29:54 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
johannes.kastl Posted - 09/03/2012 : 04:08:41 AM
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
Kathy_Wang Posted - 09/03/2012 : 02:38:17 AM
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

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