T O P I C R E V I E W |
strcmp23 |
Posted - 12/28/2017 : 07:10:33 AM Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2016 (32 bit) b9.3.226 (Academic) Operating System: Windows 7
I am trying to merge two graphs using LabTalk. I want to label the panels as (a) and (b), with the brackets enclosing the letters.The command I used was
merge_graph option:=specified graphs:="RelModeCav RelModeObs" row:=1 col:=2 aspectratio:=1 linkarrange:=1 xgap:=6 width:=11.41 height:=7.973 unit:=inch labeltext:=custom labelcustom:=(%(v$)) labelposition:=tli;
However, I received an error message saying that the string v is undefined. I am wondering what I should do. The enumeration codes given on the following page for letters do not seem to work:
https://www.originlab.com/doc/X-Function/ref/merge_graph
|
6 L A T E S T R E P L I E S (Newest First) |
strcmp23 |
Posted - 01/02/2018 : 9:50:54 PM Dear Yiming and Yuki,
Thanks for your help. The code produces the desired result now.
|
YimingChen |
Posted - 01/02/2018 : 3:53:52 PM Hi,
Please see if labelcustom:=<[<(%(v$))>]> works. Please also refer to this webpage: https://www.originlab.com/doc/LabTalk/guide/Data-Types-and-vars#String_Variables
Yiming |
strcmp23 |
Posted - 01/02/2018 : 07:32:07 AM Hi Yuki,
Thanks for the reply. When I use labelcustom:=<[<%(v$)>]>, the panels are labelled as a,b, etc but the brackets are missing. What I want is (a), (b) etc. I tried clicking on the link in your post but it doesn't seem to work. |
yuki_wu |
Posted - 01/02/2018 : 01:04:26 AM Hi,
You could try
labelcustom:=<[<%(v$)>]> The substitution notation %(v$) should be surrounded by a pair of "<[<", so that it won't be parsed before the execution. More examples of string variables can be found on this page: http://wikis/ltwiki/index.php?title=LabTalk%3AData_Types_and_Variables#String_Variables
Regards, Yuki OriginLab
|
strcmp23 |
Posted - 12/30/2017 : 10:00:05 PM What I am trying to do is to automate the labelling of each graph unit upon merging two or more graph windows. If I use the following command,
//1 by 2 graph merge_graph option:=specified graphs:="RelModeCav RelModeObs" row:=1 col:=2 aspectratio:=1 linkarrange:=1 xgap:=6 width:=11.41 height:=7.973 unit:=inch labeltext:=custom labelcustom:=(#) labelposition:=tli;
the panels are automatically labelled as (1), (2),(3) etc. However, I want them labelled as (a),(b),(c) etc. I am wondering what should be the argument to labelcustom to label each panel with lowercase letters. |
cpyang |
Posted - 12/30/2017 : 9:26:53 PM You were using it in your code
labelcustom:=(%(v$))
So you must have string variable v defined before the call?
CP
|