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
 Same gridlines for both layers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

thdrummer

Posts

Posted - 06/09/2013 :  10:14:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I got a graph with two y-axis. When I activate the gridlines of both layers, the graph becomes slightly confusing. Is it therefore possible to activate the gridlines of just one layer and force the y-axis of the second layer to perform the labeling of the graph aligned to the gridlines of the first layer?

Thanks a lot in advance!
Best regards
Alex

Origin Ver. and Service Release (Select Help-->About Origin): 8.6.0G Sr3
Operating System: Win7

meili_yang

103 Posts

Posted - 06/10/2013 :  3:18:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I guess you want to show grid lines only on layer 2 corresponding to y-axis of layer 2.

Here is one option: double click on y-axis of layer 2 to open axis dialog, and select grid lines. It should turn on grid lines only for layer 2.

Hope it can help!

Regards,


Meili
OriginLab Tech Support
Go to Top of Page

thdrummer

Posts

Posted - 06/10/2013 :  4:05:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi meili,

thanks for your quick help, but i think i explained it the wrong way. i got a graph (please see graph 1 below) with two y axis. when i activate the gridlines of layer 2, the graph becomes quite confusing (please see graph 2). I have to set the y axis range of layer 2 manually in order to get the y axis scale aligned to the gridlines of layer 1 (please see graph 3). Is there a way to do this automatically?

Thanks a lot in advance
Best regards



Go to Top of Page

meili_yang

103 Posts

Posted - 06/10/2013 :  5:47:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Thanks for your image.

You might try some the following script to auto align y-axis.

// Make layer 1 active and get the from and to y values
page.active=1;
yy1=y1; yy2=y2;
// Make layer 2 active and get the from y value
page.active=2;
yy3=y1;
// Compute the new to y value
yy4=yy3+yy3*(yy2-yy1)/yy1;
// Set the new to y value
y2=yy4;


Please refer to this previous post as well. That's where the script is found.
http://www.originlab.com/forum/topic.asp?TOPIC_ID=7997

Let me know if it works,


Meili
OriginLab Tech Support

Edited by - meili_yang on 06/10/2013 5:50:37 PM
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