LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
GDicke

Erase plots from graph

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

It's not possible to delete a plot from the graph legend after you extended the legend to a specific number. For example, extend your graph legend to say 10 plots. Later you want to use only 9 plots.  You are allowed to prepare your legend for showing only these 9 plots but the 10th plot is still inside the graph. These behavior troubles me especially when using the scroll bar of the legend. In case of this you will always see the 10th Plot, which you don't want to use anymore.

 

My suggestion: Deleting unused plots should be possible inside the properties menu.

 

 

9 Comments
X.
Trusted Enthusiast
Trusted Enthusiast

Not sure I understand what you are talking about. Are you actually deleting the plot from your graph as well (which is what you should do if you don't want it anymore)? In essence, passing a different array of plots to the graph indicator, with the discarded plot removed. Clearly hiding its legend is not the same thing and should not be.

Knight of NI

I can't be sure, since the username is different, but if it's the same person, then this is likely an offshoot of this discussion: http://forums.ni.com/t5/LabVIEW/How-can-I-delete-a-curve-from-a-graph-thanks/td-p/1883051

 

If so, we're really talking about a bug, and not an idea.

X.
Trusted Enthusiast
Trusted Enthusiast

How come you call this a bug? If you drop a new Graph/Chart on a FP, it has a default legend showing one plot called Plot 0 with a default style (even though the grapgh is empty). If you extend the legend, new "plots" are shown (Plot 1, Plot 2, etc) with their associated default names. If we accept this as being a "feature" of the graphs, then we should be ready to handle the rest. In particular, if you modify the name and style of the plots, they should indeed stick around until you replace them (for instance with an empty name and a transparent color). Maybe I misunderstand the whole story...

Knight of NI

As I indicated, I don't know if we're talking about the same thing here. But if we are, based on the comments in that thread and the list of steps I provided to replicate the issue, I'd call it a bug. If NI wants to call it a feature, that's their business.

X.
Trusted Enthusiast
Trusted Enthusiast

I see. I did not read the linked thread carefully before. Now that I have, I still don't understand where the problem is, considering that the "Properties" dialog window is only accessible in Edit mode. In Run mode, you still have to blank out the supernumerary plot names anyway. I'd agree that the Edit mode behavior is not intuitive, though.

GDicke
Member

Sorry for misunderstanding.  Correct name of my problem should be better " Erase plots from graph legend". I have no problem with the amount of curves inside the plot area. It is only a problem of the legend and the amount of plots in the legend or in the property of the graph.

 

Place a simple graph on your FP. Extend the legend to say 100 Plots. Now try to erase some of these plots in  the properties of these graph or wherever. It will not work.

 

Ni Support told me that these is a bad behavior. For me its simply a bug.

X.
Trusted Enthusiast
Trusted Enthusiast

In the linked thread, I just realized that even though the fact that the Plot Properties are indeed acting weirdly (and thus this could count as a bug), this can easily be ignored during Run time. However, a seemingly related problem seems to be that the Cursors can still be associated to the non-existing plots (I actually haven't tested it myself, but I think I remember having seen than in the past). This is a Run time problem and it is an ugly beast that needs a fix.

While they are at it, NI would be well inspired to fix the bug you report.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

X.
Trusted Enthusiast
Trusted Enthusiast

This should not have been "Declined" without a serious check by a developer whether a CAR (or several) is needed.