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

hauli

Austria
Posts

Posted - 09/08/2006 :  01:55:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: Windows XP

Suppose I got the following data

x y
1 8
5 12
7 15
9 22
12 34
15 37

I plot a Graph and enter in the Script window:
layer1.x.ticksbydata$=data1_a;
layer1.y.ticksbydata$=data1_b;

the resulting graph displays correctly

but, if my data does not increase monotonically, as with the following data, the same procedure as described above produces a graph with missing marks on the y-axis; the marks for y-values 34 and 25 are not displayed. what is the problem?

x y
1 8
5 12
7 15
9 22
12 34
15 25

In reality my data is much more complicated, but the results are the same

Thanks for any help
Hauli



Edited by - hauli on 09/08/2006 02:04:34 AM

larry_lan

China
Posts

Posted - 09/08/2006 :  05:05:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hauli:

If you want this property to set ticks, the data SHOULD BE increase monotonically. However, you can add one more column and sort it to use as ticks value, like:



Larry
OriginLab GZ Office
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