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
 All Forums
 Origin Forum
 Origin Forum
 Same gridlines for both layers

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
thdrummer Posted - 06/09/2013 : 10:14:30 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
meili_yang Posted - 06/10/2013 : 5:47:07 PM
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
thdrummer Posted - 06/10/2013 : 4:05:13 PM
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



meili_yang Posted - 06/10/2013 : 3:18:00 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000