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
 date axis of type log ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

carsten

Switzerland
78 Posts

Posted - 02/25/2008 :  1:28:43 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): V8.0Pro SR1
Operating System: XP

I want to prepare a graph in which the x-axis is of type log. The lower x-scale is scaled in units hours (represented by real numbers), however the upper x-scale (also of type log) should be scaled in units of dates (e.g. 12.3.2007).

Carsten

Fay_Guo

China
Posts

Posted - 02/26/2008 :  12:59:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Do you want a graph with two X scales, top X-scale is scaled by real numbers while the bottom one has the samw scale with top X but displayed as date values?

If yes, could you try the following steps?

1. Suppose your hour values and date values were stored in column B and column C of Book1 respectively.

2. Click New Graph button and new a standard graph. Right-click on the graph and select Layer Management to open the dialog.

3. Make Add Tab active, choose (Linked) Top X from the drop-down list of Type. And click OK to close this dialog.

4. Set the type of these two X scales as log. Please note that, their scale range (defined by From and To in the ScaleTab of X Axis dialog) is greater or equal than the data range of column B.

5. Active layer1 and type
layer.x.ticksbydata$=book1_b
in the command window.

6. Active layer2 and type the same sentence as step 5 in the command window.

7. In order to show the upper X-scale as dates, pitch on the top X and double-click on it to open the dialog. Active Tick Labels Tab, select Tick-indexed dataset from Tyoe and choose [Book1]sheet1!C to Dataset. Click OK to close this dialog.


Thanks
Fay
Originlab Tech Sevice

Edited by - Fay_Guo on 02/26/2008 04:14:09 AM
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