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 for Programming
 LabTalk Forum
 Rescaling Y axes of all the graph 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

AKazak

Russia
1205 Posts

Posted - 05/04/2020 :  5:26:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2019b (64-bit) 9.6.5.169
Windows 7 Pro x64 SP1

Greetings!

I have a plot window with more than a hundred line plots on 10 layers.

For some unknown reason setting Y-axis Rescale setting to Auto doesn't work and doesn't update the scale while I show/hide various plots.

Please share a piece of code to loop over all the layers of the active graph windows and rescale the right Y-axis on all the layers.

Thank you.

cpyang

USA
1406 Posts

Posted - 05/04/2020 :  6:13:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
doc -e lw {lay -a}



Maybe you should try the Browser Graph in 2020b, see

http://blog.originlab.com/introducing-the-browser-graph

CP
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/05/2020 :  04:17:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by cpyang

doc -e lw {lay -a}



Maybe you should try the Browser Graph in 2020b, see

http://blog.originlab.com/introducing-the-browser-graph

CP




Thank you for sharing this.

I also constructed the following snippet for updating both X- and Y-axis at the same time:

Loop (num,1,page.nlayers)   
//loop from 1 to the # of layers in the page
{
		type "layer number $(num)";
		layer -s $(num);  // make layer active
		// https://www.originlab.com/doc/LabTalk/ref/Rescale-macro
    Rescale;  // rescale layer
};


Thank you for suggesting the Browser Graph in 2020b.
My current version is 2019b (64-bit) 9.6.5.169, but the license update is ongoing.
Can I run the browser in 2019b?
Go to Top of Page

Chris D

428 Posts

Posted - 05/05/2020 :  08:04:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The Browser Grpah is built into 2020b and isn't back portable. But it is really cool when you want to visually inspect a large number of similar plots.you can even use Gadgets that will automatically update when you change the focused plot in the graph.

Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/05/2020 :  08:52:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Chris D

Hi,

The Browser Graph is built into 2020b and isn't back portable. But it is really cool when you want to visually inspect a large number of similar plots.you can even use Gadgets that will automatically update when you change the focused plot in the graph.

Thanks,
Chris Drozdowski
Originlab Technical Support




Great news!
I am looking forward to upgrading to 2020b.
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