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
 dividing by factor causes glitch in axis numbering
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

roland@nrl1

USA
4 Posts

Posted - 07/05/2006 :  1:34:23 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR6
Operating System: WinXP

I have plotted data on a log x-axis. When I divide the values by 6.28 using "divide by factor" under "tick labels", the tic marks remain at the original powers of ten, so that they are now labeled as 6.28 62.8, 628, etc.

Is there a way to correct this?

Mike

USA
357 Posts

Posted - 07/05/2006 :  3:12:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi roland:

I'm not sure what you want to do, but this divide-by-factor merely divides each tick label value by some factor. It doesn't change the tick mark location nor does replot your data against the "divided by" values. I can't think of many uses for this control but one that comes to mind is converting normalized values on a scale of 0 to 1 to, say, percentages.

If what you want to do is to divide your original data values by 6.28, then I would create a new column in the worksheet and use the Set Column Values feature to divide the original data by 6.28 (e.g. (col(b)/6.28)). Then plot the recalculated data and set your axis scale type to log10.

Mike
OriginLab

Go to Top of Page

roland@nrl1

USA
4 Posts

Posted - 07/05/2006 :  3:28:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have data plotted versus Hertz and need to replot versus rad/s. Your solution is not really feasilbe - converting the values in the worksheets would take a very long time (there are many dozens of curves).

Dividing by factor of 2 x PI in graph axes would solve the problem, but for the tic marks not being redrawn.
Go to Top of Page

easwar

USA
1965 Posts

Posted - 07/05/2006 :  4:42:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

As you don't want to change the worksheet by adding columns etc, one other solution is to use a graph with two layers, such as below:

1> Plot your data using a standard template such as Line, Scatter, Line+Symbol
2> Use the Edit->New Layer(Axes)->(Linked) Top X menu item to add a second layer to graph that only has a top X axis
3> Double-click on the top axis and set scale to Log
4> Double click inside the graph to bring up Plot Details dialog
5> Select Layer2 in tree on left panel and then select Link Axes Scales tab on right panel
6> Select Custom radio in X Axis Link group and enter the formulae:
x1=x1/(2*pi)
x2=x2/(2*pi)
and click OK

You should then get a graph such as below.

Note that:
-> You could save such a graph as a template and plot all your data using the saved template
-> Data should always be plotted into Layer 1. The second layer, layer 2 exists only for the cosmetic purpose of showing the correct relationship for the axis
-> This graph shows both units, herts and rad/s. If you want to show only rad/s. and not hertz, that could be done by taking two Layers and merging them on top of each other and linking 2nd to first as above, and then hiding x axis of layer 1. For help with this you can contact tech support.

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