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
 Plot non-stacked y-values on repeated x-values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bdcoenegracht

2 Posts

Posted - 03/15/2023 :  10:42:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2020 (9.7.0.188)
Operating System: Windows 10

Hi all,

I was wondering if it is possible to plot a graph with data that contains repeating x-values which nonetheless show up separately on the x-axis. So for example if I had the following (x,y)-pairs in rows 1 - 6: (1,1); (2,2); (3,3); (1,1); (2,2); (3,3) it would show up like the following:



I have already tried converting the x-value column to text but no luck yet.
So if anyone knows if and how this is possible I'd like to hear :)

Edited by - bdcoenegracht on 03/15/2023 10:45:56 AM

snowli

USA
1417 Posts

Posted - 03/15/2023 :  10:53:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you share the opju so we can reproduce since when i plot it, no extra plots in first 1, 2, 3

Thanks, Snow
Go to Top of Page

YimingChen

1651 Posts

Posted - 03/15/2023 :  11:11:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can plot the y values against the row index first then label the x-axis tick label with the repeated 1,2,3 values. See the attached project file.
https://my.originlab.com/ftp/forum_and_kbase/Images/repeatXY.opju

James
Go to Top of Page

bdcoenegracht

2 Posts

Posted - 03/15/2023 :  11:14:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Thanks for the quick answer; I managed to "solve" it myself already.
The issue was that the column kept automatically switching to 'Categorical'; I don't know why it did, but disabling that made it work.
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