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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 line feed and carriage return
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

carsten

Switzerland
78 Posts

Posted - 07/20/2004 :  10:52:20 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Sorry, I already submitted this topic to the Laptalk forum but the right place is certainly the Origin Forum, therefore a submitted it once more.

Is it possible to incorporate a line feed and a carriage return sequence within the Column Label field of the Worksheet Column Format window like "myColumn label \lf\cr (date: 20-7-04)" ?

Carsten

Mike

USA
357 Posts

Posted - 07/20/2004 :  11:51:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Carsten:

I'm not sure where you are going with this but you can store your example string in the column label. To return the column label, use:
%(columnNumber, @L);


For example, to return the column label for the first column of the active worksheet, enter:

%N = %(1, @L);  %N =;


Mike
OriginLab
Go to Top of Page

Mike

USA
357 Posts

Posted - 07/20/2004 :  12:01:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think I just realized what you want. To display a multi-line column label, open the Worksheet Display Control dialog box (double-click in the upper-left corner of the worksheet) and increase the Column Heading Height.

Resave the template to preserve your change.

Mike
OriginLab
Go to Top of Page

carsten

Switzerland
78 Posts

Posted - 07/20/2004 :  2:46:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

thank for the comments. But your suggestions did not solve my problem. The "multi-line" column label is via ObjectName "Legend" (see Label Control of Legend of a graph) linked to the column label name of the respective worksheet. Within the wks the column label appears "multi-lined" but not in legend of the graph.

Any further suggestions are appreciated.

Carsten
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 07/20/2004 :  3:15:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Carsten,

Something like this should work. Run it while the graph is active.

%W=%[%C,'_']; // get name of worksheet holding active dataset
%L=%W!wks.col$(colnum(%C)).label$; // get column label
label -s -sa -j 3 -n legend "\l(1) %L"; // recreate legend

I specified that the label be right-justified (-j 3) which may or may not be acceptable.

Mike Buess
Origin WebRing Member
Go to Top of Page

carsten

Switzerland
78 Posts

Posted - 07/21/2004 :  05:45:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Mike. Your script works fine but not in case of Enhanced Legend (categorical data). For the time being I will modify the legends by hand.

Carsten
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000