Author |
Topic |
|
lyla7779
6 Posts |
Posted - 11/29/2014 : 08:24:58 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): originpro 8 SR0 Operating System: win xp
Hello people, I'm having a problem with the way origin shows the axis name in the graph. I need them in the format: long name / unit for every workbook in a folder but it keeps showing them as: long name (unit)
I already tried to modify the origin.ini file adding in the [text] section XTitle=%(?X,@LA) / %(?X,@LU) YTitle=%(?Y,@LA) / %(?Y,@LU) but it still gives me the units in round brackets.
Any ideas?
Furthermore, I'm running a script to change the units and longnames of different columns in many workbooks and I need to obtain greek symbols (theta and omega) and a superscripted number in units' cells. Is there a code to use in the script window to get these automatically in the workbooks?
Thank you in advance |
|
lyla7779
6 Posts |
Posted - 11/29/2014 : 08:51:15 AM
|
Update: I solved the first part of my problem
I still can't figure out how to code symbols from the script. |
|
|
lyla7779
6 Posts |
Posted - 11/29/2014 : 11:32:00 AM
|
Solved it! |
|
|
rondanyd
1 Posts |
Posted - 11/30/2014 : 11:27:34 AM
|
Could you post how to do it? I'm having a hard time figuring out how to get symbols working... _________________________________ http://regalassetsv.com/ |
Edited by - rondanyd on 12/07/2014 10:00:33 AM |
|
|
lyla7779
6 Posts |
Posted - 11/30/2014 : 12:41:22 PM
|
To get the greek letters from the script, you have to add \f:Symbol(corresponding letter) For example: \f:Symbol(q) you'll have a theta \f:Symbol(g) gamma etc..
For subscript and superscript, the code is \-(subscripted letter or number) for example: cm\+(2) you get cm^2 |
|
|
snowli
USA
1390 Posts |
Posted - 12/01/2014 : 11:41:39 AM
|
UPDATES:From Origin 2016 on, user can customize the default axis title display in Tools -> Options dialog. See Unit Display for Axis Title dropdown list on Axis tab there.
FYI, Regarding to your 1st question: 1: Choose Tools: System Variables menu. 2. Enter LUQ as variable name. 3. Enter 4 as value. 4. Click OK. All your future Origin sessions will use Long Name/Unit on graph.
More infor: http://www.originlab.com/doc/LabTalk/ref/sys-var-list
System variable @LUQ is used to determine the delimiter for Unit when Unit appear as string in Axis Title or Legend:
0 = Unit label will not appear at Axis Title or Legend but only the long name 1 = Unit label will appear as (Unit) (Default if Japanese and English) 2 = Unit label will appear as [Unit] (Default if German version) 3 = Unit label will appear as {Unit} 4 = Unit label will appear as /Unit 5 = Unit label will appear as -Unit
Thanks, Snow |
|
|
snowli
USA
1390 Posts |
|
wongls
United Kingdom
6 Posts |
Posted - 07/27/2017 : 04:48:13 AM
|
Hi all,
Just found this entry from Google as I am having the same problem. I tried the above but it does not seem to work. Can I check if I got the syntax correct?
I want to have the axes formatted to "long name / unit". In the graph itself, I left click the axis label -> properties, to go into the "object properties" window, I enter:
%(?X, @LUQ=4)
But if I do this, it just shows the long name but no units! What am I missing?
I am using OriginPro 2015 (ver 9.2.272)
Thanks, LS |
|
|
YimingChen
1613 Posts |
Posted - 07/27/2017 : 09:23:11 AM
|
Hi LS,
In Snowli's second post, in first step, you need to select from menu Tools: System Variables to make the change.
Thanks, James |
|
|
wongls
United Kingdom
6 Posts |
Posted - 07/31/2017 : 07:02:38 AM
|
Thank you Yiming. I did that and it works.
I just wanted see if it is possible to do it from the graph's object properties window. I guess it cannot be done this way but Snowli's solution works fine also.
Best regards, Lu Shin |
|
|
|
Topic |
|