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
 Use graph layer name in legend
 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 - 01/28/2021 :  03:19:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2021b (64-bit) Beta1 9.8.5.53
Windows 7 Pro x64 SP1

Greetings!

I created a graph with a structure below.
To work with this graph I use Show Plots with the Same Name Only option in the context menu.

In this case, the legend is better to contain layer names, while the legend title should be equal to the active plot name.
What is the best way to achieve this?

Thank you.



---
Andrey

Edited by - AKazak on 01/28/2021 03:20:30 AM

cpyang

USA
1406 Posts

Posted - 01/28/2021 :  4:25:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You are talking about that we should add legend substitution notation for layer names and plot group names right? These two were currently not available but easy to add.

CP
Go to Top of Page

snowli

USA
1395 Posts

Posted - 01/28/2021 :  4:35:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

Do you mean you renamed layer name and group names in graph, and want to be able to edit legend to show layer name, group name, etc. instead of just showing 09.

Right now, u can use %(layer1.displayname$) to show layer name as legend text.

I am not sure what you mean by legend title. We don't have legend title. So u will have to add a row above the 1st row of legend and use %(1) in your case to show 09. U can use %(1, @L), etc. to show long name, etc. of plot.

I jiraed the suggestion to provide legend substitution notation for layer name and group name of the plot
ORG-23145

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 01/29/2021 :  03:17:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by cpyang

You are talking about that we should add legend substitution notation for layer names and plot group names right? These two were currently not available but easy to add.
CP



Great news!

quote:
Originally posted by snowli

Hi Andrey,

Do you mean you renamed layer name and group names in graph, and want to be able to edit legend to show layer name, group name, etc. instead of just showing 09.

Right now, u can use %(layer1.displayname$) to show layer name as legend text.

I am not sure what you mean by legend title. We don't have legend title. So u will have to add a row above the 1st row of legend and use %(1) in your case to show 09. U can use %(1, @L), etc. to show long name, etc. of plot.

I jiraed the suggestion to provide legend substitution notation for layer name and group name of the plot
ORG-23145

Thanks, Snow



The desired legend for the screenshot above would be the following:


---
Andrey
Go to Top of Page

snowli

USA
1395 Posts

Posted - 01/29/2021 :  09:16:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
OK. That's what we thought. So once we support substitution notation for layer name, it will be possible.

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 01/29/2021 :  09:45:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

OK. That's what we thought. So once we support substitution notation for layer name, it will be possible.

Thanks, Snow



I would be happy to test the new feature.
Do you plan to have it in 2021b Beta2?

---
Andrey
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