Ton Plomp Posted May 23, 2007 Report Share Posted May 23, 2007 Hi Phil, In LV 8 you can add an image in front of the plotted data in graphs, I don't know if this goes for XY as well, but I think so. Maybe that is your way to got (and I think it can reduce your code as well). Ton Quote Link to comment
Michael Aivaliotis Posted May 23, 2007 Report Share Posted May 23, 2007 Can you attach a new VI with your graph on the panel and a constant with data fed to it? I want to try a few things. Quote Link to comment
Phil Duncan Posted May 23, 2007 Report Share Posted May 23, 2007 QUOTE(Michael_Aivaliotis @ May 22 2007, 02:09 PM) Can you attach a new VI with your graph on the panel and a constant with data fed to it? I want to try a few things. Sure, here is a stripped down version that should help. Cheers & Beers :thumbup: :beer: http://forums.lavag.org/index.php?act=attach&type=post&id=5912''>http://forums.lavag.org/index.php?act=attach&type=post&id=5912'>http://forums.lavag.org/index.php?act=attach&type=post&id=5912 Quote Link to comment
Jon Sweeney Posted May 23, 2007 Report Share Posted May 23, 2007 Phil, Nice looking plot. See if this works for you: 1) move your labels to the back 2) color the black part and the silver frame of your plot transparent 3) color the background of the front panel black The plot labels now show and don't interfere. This now looks almost like your original except the other controls are surrounded by black. You could put the other controls on a decoration or a cluster as a background.http://forums.lavag.org/index.php?act=attach&type=post&id=5915 Or, as an alternative to coloring the front panel black, put the plot on a black decoration and move the labels forward so they are between the decoration and the plot. Jon Quote Link to comment
Phil Duncan Posted May 24, 2007 Report Share Posted May 24, 2007 QUOTE(Jon Sweeney @ May 22 2007, 10:21 PM) Or, as an alternative to coloring the front panel black, put the plot on a black decoration and move the labels forward so they are between the decoration and the plot.Jon Thanks for your suggestions Jon, I like the second option with a black decoration under the XY plot. Unfortunately, plotted data covers up the labels because they are behind the data. The first picture in this thread represents a typical data set to be plotted and as you can imagine, with the labels sitting behind the data I can't see some of them. I guess I need a way of having the labels in front of the data but tell LV to ignore them as an interactive item. So we are back where we started. Cheers & Beers :thumbup: :beer: Quote Link to comment
Mellroth Posted May 24, 2007 Report Share Posted May 24, 2007 QUOTE(Phil Duncan @ May 23 2007, 02:39 AM) Thanks for your suggestions Jon, I like the second option with a black decoration under the XY plot. Unfortunately, plotted data covers up the labels because they are behind the data. The first picture in this thread represents a typical data set to be plotted and as you can imagine, with the labels sitting behind the data I can't see some of them. I guess I need a way of having the labels in front of the data but tell LV to ignore them as an interactive item. So we are back where we started. Cheers & Beers :thumbup: :beer: Phil, maybe this is a long shot, but have you tried using annotations to programmatically set the labels? This way the "labels" would be part of the plot itself. /J Quote Link to comment
Jon Sweeney Posted May 24, 2007 Report Share Posted May 24, 2007 QUOTE(JFM @ May 21 2007, 08:12 PM) The labels must be in front of the plot area to be visible. oops, sorry, I missed that part. Jon Quote Link to comment
Phil Duncan Posted May 25, 2007 Report Share Posted May 25, 2007 QUOTE(JFM @ May 23 2007, 04:09 PM) Phil,maybe this is a long shot, but have you tried using annotations to programmatically set the labels? This way the "labels" would be part of the plot itself. /J Fantastic! That did the trick. I had to disable "Allow dragging" but now the annotations sit over the data and don't interfere with the user clicking on the XY-plot. Thank you very much Cheers & Beers :thumbup: :beer: Quote Link to comment
Mellroth Posted May 25, 2007 Report Share Posted May 25, 2007 QUOTE(Phil Duncan @ May 24 2007, 10:35 AM) Fantastic! That did the trick. I had to disable "Allow dragging" but now the annotations sit over the data and don't interfere with the user clicking on the XY-plot. Thank you very much Cheers & Beers :thumbup: :beer: You're welcome. Would you mind uploading the version using the annotations, to help others facing the same problem? /J 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.