01-07-2009 10:38 AM
I've got a bit of an aesthetics question.
I have written a program which display data from binary files. These binary files hold chunks of data, an hour or two each. Each chunk corresponds to a reading window, and there are a handful of reading windows per day.
The display of the data is already implemented, what I'm working on now is a more intuitive way of selecting which data is to be displayed.
My goal is to have a waveform graph with the X axis representing an entire day (hr 0 - hr 24), and on the graph is indicated which windows of time are available for review, ie data has been collected. The background of a "collected" window will be yellow (or some other color), while times during which no data was collected will be black. The user will then drag cursors to select the window he/she wants to see data from.
This was easy enough to accomplish by graphing a digital signal (1 for data collected during this time, 0 for not) and point-filling with yellow to zero. My only issue with this solution is that the point fill appears on top of the grid lines, which just doesn't look quite right.
Is there any easy way to get the grid to appear on top of the graphed data, or is there a way to programmatically set multiple background colors (this could accomplish the same thing)?
Solved! Go to Solution.
01-07-2009 10:43 AM - edited 01-07-2009 10:44 AM
Change the order of the data plots in the graph. It's been a bit since I have played with this but I think Z-axis wise, plot 0 is on the bottom and plot n is on the top - but it could be the the other way around too...
Mike...
01-07-2009 10:47 AM
Mike:
Thanks for the response. Unfortunately my issue isn't graph data covering up other graph data, it's that I'd like to be able to see the Major/Minor grid lines on top of my graph data. The grid lines seem to be stuck in the background, though, and all wired data is plotted on top of them.
01-07-2009 10:51 AM
Oh, I see. Yes you are correct, the grid lines are stuck at the back. It would be nice if that behavior was settable.
Mike...
01-07-2009 10:52 AM
01-07-2009 10:55 AM
Changes to the native behaviour of LV objects is seldom simple. If I was forced to do this I would try to take advantage of the background image that is now available in LV 8.+
So maybe two graphs.
1) only has your plots.
2) Use the image from #1 and slips itno its background leaving the grid lines on top.
Boy would that be a lot of work to make it work, particularly if you wanted to maint zooming, auto-scales and plot properties!
Ben
01-07-2009 11:03 AM
You could also create additional plot lines that are appear as grid lines. This would allow zoom to continue to operate as expected.
Mike...
01-07-2009 11:17 AM
Good suggestions guys, kudos all around. I think I'll go with making my own grid lines and plotting the image in front, since zoom and auto-scaling aren't requirements.
This just might work after all.......