02-25-2014 08:16 AM
I have two xy graphs, arranged one below another. Both have legends and multiple yscales (depending on user selection using popup menu). Yscales are shown programmatically and so is legend text (which varies in length). Legend is on right of plots. What I need to do is resize the plotting part of the xy graph to accomodate the legend, when its text increases in size (and it moves left onto the graph). The lower graph's plotting part shoudl also acquire the same size.That is the total control area should not increase (lets say 1200 pixels in width) and plotting area should shrink or enlarge to accomodate the increasing yscales (on the right side) or legend size.
Please share a VI that does so.
Thanks
02-25-2014 08:36 AM
What have you tried so far?
Cameron
02-25-2014 08:59 AM
02-25-2014 09:52 AM
Well, this seems to do what you want. IMHO, it's not pretty, and I bet it could be made better (if it could, I'm sure we'll find out, BRING IT ON!). Autosize your legend if you want, I wanted to show how things would vary. You could then just wire the second graph to have the same size properties as the first.
Cameron