Menu

#550 Unique Keys (Remove duplicate keys while plotting)

open
nobody
None
5
2023-01-02
2023-01-02
No

So I was surprised to see there is no option like set key unique which will remove duplicate keys and only keep unique ones. If you have a ton of plots to be made from different files you can loop through them with same style and title and it'll be one key.

For example:

plot for [i=1:50] "first.dat" using 0:i with lines linestyle 1 title "First",\
     for [i=1:50] "second.dat" using 0:i with lines linestyle 2 title "Second"

With unique option this can have just 2 entries instead of 100.

Current alternative is to do it with notitle and later add a keyentry manually. But I feel like the unique feature might be worth it. As the keyentry option would require you to have the style at two place.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.