Author |
Topic  |
|
strcmp23
Bahamas
4 Posts |
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
|
|
cpyang
USA
1406 Posts |
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
|
 |
|
strcmp23
Bahamas
4 Posts |
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. |
 |
|
yuki_wu
896 Posts |
|
strcmp23
Bahamas
4 Posts |
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. |
 |
|
YimingChen
1653 Posts |
|
strcmp23
Bahamas
4 Posts |
Posted - 01/02/2018 : 9:50:54 PM
|
Dear Yiming and Yuki,
Thanks for your help. The code produces the desired result now.
|
 |
|
|
Topic  |
|