취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Display legends selectively in the XY graph legend bar

해결 완료!
솔루션으로 이동

Hi Everybody

 

There's a 1-D array contains 65 XY graph elements. I made them plotted with a XY-graph indicator, and color them in 5 groups. Each group contains 13 plots .

 

SamuelLIN_0-1594729662471.png

 

The problem is "how to show legends selectively?". I just want to show 5 legends , and name them as " group-1, group-2, ...group-5", corresponding to the color of each group.

 

The Legend-> visible property note makes all the legends disappear... , So I didn't find the right way to use it .

 

Can anyone show me an applicable way ?  Thanks very much .

 

 

 

0 포인트
1/3 메시지
1,565 조회수
솔루션
주제 작성자 SamuelLIN이(가) 승인함

Hi Samuel,

 

I see two options:

  1. Create your own legend using a cluster of string and colorbox.
  2. Use the graphs legend and show only the first 5 elements. Sort your plots to have the 1st plot of each group as the first 5 plots in the graph. Name those 5 plots "group1" to "group5"…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
2/3 메시지
1,562 조회수

Hi GerdW:

 

Thanks for your ideas. It solved the issue 

👍

0 포인트
3/3 메시지
1,498 조회수