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
 Exclude selected plot(s) from legend

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
AKazak Posted - 11/30/2020 : 04:33:36 AM
OriginPro 2021 (64-bit) 9.8.0.200
Windows 7 Pro x64 SP1

Greetings!

If I prepare crossplots I usually add y=x bisect plot to make comparison easier.
Since the line is obvious I don't need it in the graph legend.
How do I exclude the function plot from the legend, so it does not re-appear upon legend reconstruction?

Thank you.

---
Andrey
11   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 06/07/2022 : 10:25:52 PM
quote:
Originally posted by cpyang

quote:
Originally posted by AKazak

A side question on Origin internals: how does original Legend object differ from its clone Text object? In other words: how does Origin identify and get the reference to the original Legend object?

---
Andrey



Only by the name of the object. If you rename the legend, a new one will be created, that is why Snow's workaround is to keep it but hide it.

CP




Got it.
Thanks.
---
Andrey
cpyang Posted - 06/07/2022 : 12:03:54 PM
quote:
Originally posted by AKazak

A side question on Origin internals: how does original Legend object differ from its clone Text object? In other words: how does Origin identify and get the reference to the original Legend object?

---
Andrey



Only by the name of the object. If you rename the legend, a new one will be created, that is why Snow's workaround is to keep it but hide it.

CP
AKazak Posted - 06/07/2022 : 11:52:13 AM
quote:
Originally posted by snowli

Hi Andrey,

I created ORG-25354 with 2 suggestions.
1. Option to Hide legend for function plots.
2. Option to lock legend so Update Legend will not reconstruct the hidden entries. Again, i suppose Reconstruct Legend should bring them back.

A workaround for now:
Select Legend box and Ctrl+C. Then Ctrl+V. This actually create a Text object called "Text". Remove Entries from this Text object.
Go to Object Manager dialog.
Right click top node and choose Show Graph Objects.
Uncheck legend box so it will be hidden

Now try reconstruct or update legend. It will only update the hidden legend box. It will not affect your "Text object"

Thanks, Snow



Dear Snow,

Seems to be a viable workaround.

A side question on Origin internals: how does original Legend object differ from its clone Text object? In other words: how does Origin identify and get the reference to the original Legend object?

---
Andrey
snowli Posted - 06/07/2022 : 10:15:26 AM
Hi Andrey,

I created ORG-25354 with 2 suggestions.
1. Option to Hide legend for function plots.
2. Option to lock legend so Update Legend will not reconstruct the hidden entries. Again, i suppose Reconstruct Legend should bring them back.

A workaround for now:
Select Legend box and Ctrl+C. Then Ctrl+V. This actually create a Text object called "Text". Remove Entries from this Text object.
Go to Object Manager dialog.
Right click top node and choose Show Graph Objects.
Uncheck legend box so it will be hidden

Now try reconstruct or update legend. It will only update the hidden legend box. It will not affect your "Text object"

Thanks, Snow

AKazak Posted - 06/07/2022 : 09:52:48 AM
quote:
Originally posted by snowli

Reconstruct legend will remade legend based on what's plotted.

Is there any reason you need to reconstruct legend after you manually choosen some legend not to show?

In Plot Details dialog, if u go to Graph node on the left and choose Legends/Titles, u can set Legend Update Mode to None so when u change data, the legend will not change.

But again reconstruct legend will remake legend.

Thanks, Snow



Dear Snow,

The problem is that the legend remakes completely even if I call Legend Update, not Reconstruct.

Is there a way to remove few legend entries (rows) and block their recreation on Legend Update?

---
Andrey
snowli Posted - 06/07/2022 : 09:05:48 AM
Reconstruct legend will remade legend based on what's plotted.

Is there any reason you need to reconstruct legend after you manually choosen some legend not to show?

In Plot Details dialog, if u go to Graph node on the left and choose Legends/Titles, u can set Legend Update Mode to None so when u change data, the legend will not change.

But again reconstruct legend will remake legend.

Thanks, Snow
AKazak Posted - 06/07/2022 : 07:12:26 AM
The option is still required.
Can you share an update on the topic, please?

---
Andrey
AKazak Posted - 12/01/2020 : 09:56:02 AM
quote:
Originally posted by YimingChen

You have to manually delete the unwanted legend entry.

James



Sure, but the deleted item will re-appear once I reconstruct the legend.

---
Andrey
YimingChen Posted - 11/30/2020 : 10:48:03 AM
You have to manually delete the unwanted legend entry.

James
AKazak Posted - 11/30/2020 : 09:46:17 AM
quote:
Originally posted by YimingChen

You can use reference line for such purpose, see below:
James



Great workaround!
Thank you.

However, in general, is this possible to selectively hide plots from the legend?

---
Andrey
YimingChen Posted - 11/30/2020 : 09:38:55 AM
You can use reference line for such purpose, see below:


James

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