T O P I C R E V I E W |
schneide |
Posted - 03/22/2005 : 05:54:17 AM 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 |
7 L A T E S T R E P L I E S (Newest First) |
easwar |
Posted - 03/24/2005 : 3:36:43 PM 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
|
Mike |
Posted - 03/24/2005 : 09:16:23 AM 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 |
schneide |
Posted - 03/24/2005 : 07:16:07 AM 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 |
Mike |
Posted - 03/23/2005 : 2:48:01 PM 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
|
Mike |
Posted - 03/23/2005 : 12:08:52 PM 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 |
schneide |
Posted - 03/23/2005 : 08:06:08 AM 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 |
Mike |
Posted - 03/22/2005 : 10:12:05 AM Hi Gi:
Set the Rescale drop down list (Scale tab of the Axis dialog box) to Manual, then resave the template.
Mike OriginLab |