07-02-2014 05:11 AM
I have an xygraph (from silver controls palette) (LabVIEW 2012 (SP1 12.0.1f5). I have encountered a problem where the plot legend text overlaps with plot graphic icon image. I don't know the cause of it but it always starts at my boss's end and the only solution that I have is to replace the xygraph with a new one (by right clicking the graph and selecting replace and then a new xygraph from the silver controls paltete. Is there a solution to this problem (autosize legend is turned on).
This is how it should be (and this is how it starts)
But this is how it ends up (after inderterminate time)
Any fixes?
Thanks in advance
07-02-2014 05:28 AM
Did you try to enter a name with letters more than 2 times of the present one (Its just we hit the keyboard and endup having a large text)? Also what happens when you try to enable the "Plot Visibility checkbox"? Did you set the graph to scale with the pane?
07-02-2014 06:05 AM
07-02-2014 07:07 AM
Just try to do the same way by taking the code from your boss and see what happens (Without doing anything just try to reporoduce, may be post it here). This will help to understand why it happened.
07-02-2014 07:20 AM
07-02-2014 07:25 AM
Keep the thread updated if you find a solution/re-produce the bug.
Thanks ! Have a good one!
08-12-2014 07:08 AM
Here is a VI with two graph controls. The one above is fine but the one below has text and graph icon reverted (mirror image of the one above). How did that happen, no idea whatsoever. So how can one code a solution, that is, check if the legend has reverted text and graph icon and fix such cases. I don't have the case where legend text overlaps with graph icon at the moment and would post it as soon as that is available. I am posting the VI so that someone can come up with a programmatic solution. Further, both graphs are from the same front panel, but for some unknown reason, one has correct orientation, the other not.
08-12-2014 07:35 AM
Right-click on the graph and go to Advanced->Customize. You will now have the control editor open. Click on the wrench in the toolbar. It should now look like tweezers. You can now move individual peices around. This is how you can switch the legend text and icon.
08-12-2014 08:04 AM
And here is the same VI with third graph, onw with overlapped text and graph icon.
08-12-2014 08:06 AM - edited 08-12-2014 08:14 AM
Thanks for the info crossrulz, yes this works but isn't there a programmatic solution.