11-29-2005 08:13 AM
11-29-2005 11:02 PM
Hi Paul,
Resizing the graph will resize both the border and the plot region.
and maybe you have the superimposed picture's size to fit the the plot region and it may be the reason for what you are observing
check it out.
regards
Dev
11-30-2005 12:03 AM - edited 11-30-2005 12:03 AM
The position of the plot area can't be reached directly using the standard LabVIEW properties. There are two possible solutions : use the scale position and width properties to calculate the plot area position, or live in a non-standard environment, and use a few scripting nodes (see this link).
Additionnal issues come from the followings :
- the picture position relates not to the draw area, but to the outer border of the picture, including the frame (4 pixel wide).
- the plot area includes a one pixel frame (you can see it when modifying the foreground color of the plot area).
So you need to subtract 2 pixels (4 - 2x1) from the position and size of the picture to get a proper positionning. And of course, beware of the label displays. 😉
Working with the scale marker positions is also a bit tricky, since you have to take into account the font height if you want to make a serious work ;). And of course, doing that, you'll find that there are a few inconsistencies in the string property interface between different LV objects. 😞 (shadow and outline are specific to the picture control...)
The attached vi illustrates these comments.
Message Edité par chilly charly le 11-30-2005 07:08 AM
11-30-2005 09:29 AM
11-30-2005 09:37 AM
11-30-2005 10:05 AM
This may be a topic for another time and thread (and I may be revealing some ignorance here) but I thought you might have been joking about the SuperPrivateScriptingFeatureVisible=True and SuperSecretPrivateSpecialStuff=True.
The number of additional properties are amazing! But where did they come from and why the lack of support? I've pretty much been on my own for the last 5 years learning and developing LV applications, so I don't get much background or 'guru' info except what I learn here on this board.
Thanks again.
Paul
11-30-2005 10:18 AM
11-30-2005 10:56 AM
Pana-man a écrit: ...I think NI will take a dim view of us hashing this out here.
Pauls (funny that !)
I thought I had been clear in my previous post, where I gave you the link to the Lava user Group, and told you about living in a non-standard environment. Seems that you have a very selective reading ;). You are right this is not the better place to discuss this subject.
And don't forget I also gave you a work around, using only standard tools, that should work as it with LV 8 !
11-30-2005 11:48 AM
11-30-2005 01:19 PM
Just a final note on this topic, functionality has been added in LabVIEW 8.0 that allows you to insert an image onto a graph via the graph's property node. It's a pretty neat feature and I would recommend checking it out if you're interested. If you do not have a copy of LabVIEW 8.0, you can try it out here for free.
Kind Regards,