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
 bubble plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mats77sv

Sweden
10 Posts

Posted - 11/18/2014 :  07:32:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.1pro
Operating System:win7

Hi,
I would like to make a bubble plot, but so far I have failed to do so.

Exampel:
I have 3 columns.
X: col(1)
Y1:col(2)
Y2:col(3)-number of points which should be used as 'symbol size'.

How do I define the input parameters including symbol size and scaling factor in a script? Can you just use a simple plotxy-command?

/Mats

lkb0221

China
497 Posts

Posted - 11/18/2014 :  10:34:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mat

Plotxy only supports creating graph types with XY range.
So to make XYY plot like bubble, you may use worksheet -p cmd.
For example:
worksheet -s; // Dis-select all
worksheet -s 1 0 3 0; // Select first 3 columns
worksheet -p 193 Scatter; // Indexed size scatter
set %c -k 2; // Circle shape symbol
set %c -kf 1; // Symbol interior open


Zheng
OriginLab
Go to Top of Page

Mats77sv

Sweden
10 Posts

Posted - 11/19/2014 :  04:42:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Zheng,

Thanks for your help. It works perfect, however I also need to be able to select 3 different columns that are not arranged as col1, col2 and col3. I looked in the labTalk Scripting Guide but I was not able to "decode" the precise meaning of "worksheet -s 1 0 3 0". How do I define the 3 columns I want to use for my bubble plot?

Regards,
Mats
Go to Top of Page

lkb0221

China
497 Posts

Posted - 11/19/2014 :  11:00:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Then use the following cmd to select a specific column:
wks.colSel(1,1); // Select the 1st column
wks.colSel(2,0); // Dis-select the 2nd column
worksheet -s; // Dis-select all


Zheng
OriginLab
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