ThomasGutzler Posted August 16, 2015 Report Share Posted August 16, 2015 Hi, I've been trying to find a method to remove plots from my XY graph. Here's what I don't mean: - change the amount of plots shown by reducing the size of the array that connects to the terminal or Value property node - change the amount of items shown in the legend by setting Legend / Number of rows. When I open the properties I see this: And when I run this I get an array with 3 elements: Plot 0, Plot 1 and Plot 2 How do I delete Plot 2 from that list without replacing the actual XY Graph with a new one and never pull the legend down to show 3 plots? Quote Link to comment
CraigC Posted August 17, 2015 Report Share Posted August 17, 2015 Hi, The Array constant Wired to the XY Graph is not empty. The clusters have empty arrays but the array of clusters is not empty. I am guessing there are three elements within the array, you will need to delete one. then run the code. Craig Quote Link to comment
ThomasGutzler Posted August 17, 2015 Author Report Share Posted August 17, 2015 The Array constant Wired to the XY Graph is not empty. Craig, unfortunately it's not that easy. That array is empty. Maybe I phrased my original post badly. Here's what I mean to say: These are the suggestions users usually get when asking a similar question. I've tried those and they don't give the result I'd like: - change the amount of plots shown by reducing the size of the array that connects to the terminal or Value property node - change the amount of items shown in the legend by setting Legend / Number of rows. Quote Link to comment
CraigC Posted August 18, 2015 Report Share Posted August 18, 2015 Hi Thomas, I thought you were asking how to change this, sorry misunderstood. I have come across the situation where the number of Graphs visable on an XY plot sticks to the last number seen by the plot. I also did not find a way of changing this unless I was to re-run the code presenting the Graph with a different number of plots. Seems there is a need to be able to edit this as you suggest. Quote Link to comment
Popular Post ThomasGutzler Posted August 25, 2015 Author Popular Post Report Share Posted August 25, 2015 This post offers a solution (amongst others), which I should have tried before posting this. tldr: Set the "Legend: Plot Minimum" property to the number of plots in the graph. The property name and its documentation seem to suggest a solution to the opposite problem: The number of entries in the plot legend will never go below this value. That's what threw me off, because I was looking for something that would make sure the number of entries in the plot legend will never go above this value. As it turns out, this property node also has the effect of removing "unused" plot names when the number is set to the amount of plots in the graph. And in 2014 it also works with scroll bars in the legend without having to turn them off and on again. Delete Plot Names From Legend.vi 3 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.