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
 Number of ticks on axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

schneide

Germany
47 Posts

Posted - 03/22/2005 :  05:54:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 Pro SR5
Operating System: Win XP

I want to plot data in a template which always shows e.g.4 major ticks on the Y axis. The data have a widely varying range.
When I save the template after selecting No. of major ticks = 4
The next time I plot different data with this template however the y axis rescales (as it should for different data) - obviously retaining the tick increment, not the tick number - Is there a solution to this?

I see a lab talk command which might be used - is there also a Origin C expression for it?
Preferrably however, I would like to store the number of ticks information within the template

Any suggestions?

Gi

Giselher

Mike

USA
357 Posts

Posted - 03/22/2005 :  10:12:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Gi:

Set the Rescale drop down list (Scale tab of the Axis dialog box) to Manual, then resave the template.

Mike
OriginLab
Go to Top of Page

schneide

Germany
47 Posts

Posted - 03/23/2005 :  08:06:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mike,

unfortunately setting the rescale tab to manual doesn't work for me, since this also fixes the minimum and maximum off the axis. However my data can vary a lot in range and I need to rescale the minimum and maximum while keeping the number of ticks, not their increment, constant.


Giselher
Go to Top of Page

Mike

USA
357 Posts

Posted - 03/23/2005 :  12:08:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Giselher,

I see your problem. You should be able to resolve this by selecting the # Major Ticks radio button on the Scale tab, but unfortunately, this setting is not saved with the template (or at least, it doesn't work as it should). A Bug.

Let me get back to you on this. Sorry for the inconvenience.

Mike
OriginLab
Go to Top of Page

Mike

USA
357 Posts

Posted - 03/23/2005 :  2:48:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Giselher,

We tried, but could not find a solution to this problem. Origin insists on making internal "adjustments" your # of Major Ticks setting. So, we have submitted a bug report.

For future reference, this item is QA 7535 - Number of Major Ticks is incorrect when the # of Major Ticks is specified .

Thank you for bringing this to our attention.

Mike
OriginLab
Go to Top of Page

schneide

Germany
47 Posts

Posted - 03/24/2005 :  07:16:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
From an Origin-C-skript is there a set of commands to adjust the number of ticks or do I have to call the LabTalk command layer.axis.majorTicks?


Giselher
Go to Top of Page

Mike

USA
357 Posts

Posted - 03/24/2005 :  09:16:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Gisheler,

When I showed your problem to our staff scientist yesterday, he tried to devise an Origin C-based workaround. Unfortunately, he was not successful, so I'm afraid that for the time being, there simply isn't a solution to your problem. We have made it a priority to fix this for version 8. Our apologies.

Mike
OriginLab
Go to Top of Page

easwar

USA
1965 Posts

Posted - 03/24/2005 :  3:36:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

From an Origin-C-skript is there a set of commands to adjust the number of ticks or do I have to call the LabTalk command layer.axis.majorTicks?



Hi Giselher,

If you are asking how to access axis properties from Origin C, please look at the following page:
http://www.originlab.com/index.aspx?s=9&lm=71&pid=268
and then the specific example "Manipulate Graph Axes" under the "Graphing" subcategory.

As Mike remarked, the specific problem you are facing cannot be solved using script because Origin internal code does some adjustment of the tick count and placement, but the above page will show how to get and set such properties.

Easwar
OriginLab

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