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
 Calculated label specific indices
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Simon V

2 Posts

Posted - 06/26/2023 :  05:10:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I have a chart with several datasets and I need to display a label on the maximum of each curve.
- Would it be possible to set a dynamic value in the field "show at specific indices only" to use only the indice from the max value ?
- If not, can I have a column with the max indice from each curve and say "for the first curve take the first indice, the second curve the second indice" and so on ?

Below is an example of the result I need. Thank you for the help.

YimingChen

1592 Posts

Posted - 06/26/2023 :  09:58:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Currently the show at specific indices only setting doesn't support script. We will see if we need to improve it. As a workaround, you can create a label column and label points with that column. See the image below.
i == list(max(col(B)), col(B)) ? col(B) : ""



James
Go to Top of Page

Simon V

2 Posts

Posted - 06/28/2023 :  09:59:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Great, it does the job. Thank you!
Go to Top of Page

YimingChen

1592 Posts

Posted - 12/08/2023 :  12:42:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We have made improvements Origin 2024 to allow labeling the min/max point easily on the plot.




James
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