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 for Programming
 LabTalk Forum
 x-function sparklines: mutliple xy cols
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SMCA

22 Posts

Posted - 09/03/2008 :  08:54:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there a way to create sparklines in a worksheet that contains multiple x and y columns? I have a worksheet with x1, x2 and x3 x-designations, but the sparkline command only creates sparklines for the last x-designation (x3 and subsequent y3 columns). x1 and x2 related columns are empty.
Thanks!
Stefan

OriginPro 8SR3 B932

easwar

USA
1965 Posts

Posted - 09/03/2008 :  3:01:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Stefan,

With worksheet active, try:


// add sparklines to all cols from col 1 thru last col
sparklines sel:=0 c1:=1 c2:=$(wks.ncols);
// or
// add sparklines for all y cols up to end of sheet
// plot sparkline as y versus corresponding x
sparklines sel:=0 c1:=1 c2:=$(wks.ncols) xy:=1;


Easwar
OriginLab
Go to Top of Page

SMCA

22 Posts

Posted - 09/04/2008 :  05:11:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Easwar,
thanks for the reply. I just tried it, and it works. Funnily, this was exactly the command I was using before. Hmm, I upgraded to SR3 yesterday, maybe the sparkline behaviour was changed from SR2 to SR3? Anyway, it works now. Thanks!
Stefan

OriginPro 8SR3 B932
Go to Top of Page

a.abc.b35

175 Posts

Posted - 01/11/2011 :  02:50:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
How can I add sparklines for all columns through Origin C ?

AB
Go to Top of Page

Iris_Bai

China
Posts

Posted - 01/12/2011 :  9:20:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by a.abc.b35

How can I add sparklines for all columns through Origin C ?

AB



Hi,

To add sparkline from Origin C, you can use

LT_execute("sparklines sel:=0 c1:=1 c2:=$(wks.ncols);");


Iris
Go to Top of Page

a.abc.b35

175 Posts

Posted - 01/13/2011 :  1:27:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Iris. Now I have a program which destroys all the graphs in the project. If I run that with the sparkline on in the files, the program fails and gives a error message saying its due to the sparklines that it cant execute. What needs to be added in that to get rid of this problem ?
Thanks again,

AB
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