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
 Automatic offset for axis labels (prevent overlap)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JoD

Germany
8 Posts

Posted - 06/15/2020 :  05:22:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In order to prevent overlapping I would like to set the labels of the x-axis to offset alternatingly as shown in the following picture:



I could not find a way to achieve that and would be grateful for any advise.

Origin Ver. and Service Release: OriginPro 2020 (64-bit) 9.7.0.185 (Academic)
Operating System: Windows 10

Chris D

428 Posts

Posted - 06/15/2020 :  09:34:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

There is no "official" way but there is a hack that will work if you are willing to do it.

In the source for your labels you wish to offset, position the caret at the beginning of the text and hit CTRL+Enter to add a carriage return at the start of the text. This will push the label down.

It's rough but in the end it gets the job done!

I hope this helps.


Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

Chris D

428 Posts

Posted - 06/15/2020 :  2:06:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Since my previous post, I have found a method (we actually have an animated gif of how to do it). Here is a link to the animated GIF (it can't be displayed in the forum.

https://www.dropbox.com/s/s3njedebrufog0h/staggered_labels.gif?dl=0

Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

JoD

Germany
8 Posts

Posted - 06/17/2020 :  09:31:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear Chris, thank you very much for your helpful reply!

quote:
Originally posted by Chris D
Since my previous post, I have found a method (we actually have an animated gif of how to do it). Here is a link to the animated GIF (it can't be displayed in the forum.


The method shown in that GIF works well. However, I don‘t quite understand the idea behind „Show at Specified Indices Only“ = 2
Wouldn‘t that mean that only every second minor tick label is shown?

However, I have a usecase in which neighter the above described method nor the „hack“ mentioned in your first post seems to work:
I have a box-plot in which I want to separate categories with a line (I chose to use settings in „Grids“). This only works when the bottom tick labels are not in the form of a table. In other words when „Tick Labels → Table“ is enabled, there is no tab for „Minor Tick Labels“.

I hope the following screenshots illustrate the issue:





I would be very grateful if you had an idea how I could solve this.
Best regards
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