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

ampacmopac

Posts

Posted - 05/18/2007 :  07:58:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):6.0
Operating System:winXp
Hi
How can I plot a graph such that the x-axis in it, which cosists of a number of independent groups each group consists of a specific number of members,can be represented by a number of dots equal to the number of the members in that group that they give the specified Y-axis result or measurement.
for example, if 7 members of group A give a y-axis value of Y1 ,and 4 members of the same group give the value of y-axis equal Y2. How can I present the numbers of these two members of the same group by 7dots and 4 dots, which correspond to number of the member, instead of one dot which corresponds to their number on the x-axis.
What I want to plot is a graph from which I can directly know the number of the group members that give the specified y-axis value.
Thank you very much and I am sorry if I failed in explaining the topic very well.

Mike Buess

USA
3037 Posts

Posted - 05/18/2007 :  09:28:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
What I want to plot is a graph from which I can directly know the number of the group members that give the specified y-axis value.

You can label each data point with that number. Select the Y column you want to plot and then run the following script to create the label column. Then select the Y and Label columns and plot like you want.

if(%C=="") {
ty -a "Select a Y column.";
return;
};
get %C -e npt;
wks.addCol();
ii=wks.ncols;
wks.col$(ii).type=5; //label
wks.addCol();
jj=wks.ncols;
loop(i,1,npt) {
nn=%C[i];
wcol(jj) = %C==nn ? 1 : 0;
sum(wcol(jj));
wcol(ii)[i]=sum.total;
};
del wcol(jj);
wks.colSel(ii);


Mike Buess
Origin WebRing Member
Go to Top of Page

ampacmopac

Posts

Posted - 05/19/2007 :  04:51:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much.
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