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
 Change x-axis of a plot from nubers to date
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Locardas

24 Posts

Posted - 02/08/2022 :  11:50:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2021b
Operating System: Windows 10

Dear Origin Forum,

I have created a ribbon plot (Figure 1) whose x-axis I want to change from a numbering of 1-42 to a date+time unit.



When I create a corresponding X column in my workbook, Origin cannot distinguish between 2 different times on the same day.
The result is that the corresponding y-values are overlapping in the plot (see figure 2).



How do I get a plot that looks like Figure 1 but with a time scale?

Best regards,
Locardas

snowli

USA
1386 Posts

Posted - 02/08/2022 :  2:24:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Do you mind sharing your project?
It's hard to tell how the date column is set to Date or not since i can't tell if the date are right aligned. And not sure how you you modified the axis scale and tick labels.

And maybe when plotting for the first time, you can directly use A as X so no need to first plot with sample ID as X and change axis later.

Thanks, Snow
Go to Top of Page

Locardas

24 Posts

Posted - 02/09/2022 :  03:02:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Snow,

thank you for your offer, of course I'll be happy to let you take a look at my project:


!!https://my.originlab.com/ftp/forum_and_kbase/Images/Timeline_Plots.opju

Best wishes,
Locardas
Go to Top of Page

minimax

348 Posts

Posted - 02/09/2022 :  04:17:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Locardas,

There is no problem of the time axis plot.

It display differently from the other one because the X data is not in monotonic order.

If you sort the column ascending, the 2 graphs will look basically the same.

PS, it is not 100% the same since the X data has some missing date, like 2019-12-16 is missing, so it will have a bigger gap.
Go to Top of Page

Locardas

24 Posts

Posted - 02/09/2022 :  12:57:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by minimax

Hi Locardas,

There is no problem of the time axis plot.

It display differently from the other one because the X data is not in monotonic order.

If you sort the column ascending, the 2 graphs will look basically the same.

PS, it is not 100% the same since the X data has some missing date, like 2019-12-16 is missing, so it will have a bigger gap.




Thanks for the tip, it worked perfectly!

With kind regards,
Locardas
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