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
 Origin Forum
 axis units

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
lyla7779 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
9   L A T E S T    R E P L I E S    (Newest First)
wongls 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
YimingChen 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 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
snowli Posted - 12/01/2014 : 12:03:32 PM
Regarding to 2nd question: We have \g() for greek letters
You can see all the escape sequence we support below:
http://docwiki.originlab.com/index.php?title=UserGuide:Escape_Sequences

Andwe support rich text in worksheet as well since 8.0.
See Quick Help link:
http://qhwiki.originlab.com/~originla/howto/index.php?title=QuickHelp:How_to_insert_greek_symbols_and_subscript_in_plot_legend_and_axis_titles_from_worksheet_headers

GUI Way: Double click a cell in Units row, you can Format toolbar is activated. You can press AlphaBeta symbol down to enter greek. press Superscript/Subscript button down to enter superscript/subscript and they display in worksheet as well.


Thanks, Snow
snowli 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
lyla7779 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
rondanyd 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/
lyla7779 Posted - 11/29/2014 : 11:32:00 AM
Solved it!
lyla7779 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.

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