11-26-2012 08:03 AM
Hi, I have a 3D Graph X Axis location problem where the bar that is plotted gets stuck between two adjacent gridlines with the same label. I simply think the graph should be sticking the bar on the line that it is plotting it for. I.E> if the x value is 1, I want the graph to display it as being on the "1" grdiline for the x axis. Please help...
Solved! Go to Solution.
11-27-2012 09:32 AM
Hello id,
I opened your VI , but to be honest, I was not able to understand exactly what you want to modify, maybe if post an imege of the graph, and mark what is "wrong " with it, I can help you !!
Rergards
Mart G
11-27-2012 11:16 AM
mart,
I have an issue with the x-axis here where the graph bars are not plotting on center at their value in one case and in the other case I get Qty 2 number 2 labels with a bar between them. See attached.
11-27-2012 11:25 PM
Hi id,
The gridlines don't reflect the input length since one can have an extreme large length on certain axis. But it can be set programmatically. I attached an example.
11-28-2012 07:00 AM
Thanks, I think I see the issue here now. there are 2 of them. One is that I have the x axis formatted only to show the whole number and not any decimal values thereafter. Once set to show these, it is evident that the x axis values are not 2 and 2 respectively but 2.4 and 2.6.
I also see the tick marks appear to have to be set differeent every time depending on the data that comes into the graph in order to get a good display grid. It appears that you operate in one of two different grid display modes - manual where you set the max, min and tick counts or auto where WYSIWYG.
Seems like the way to go is to autoscale, then read the max and min values and create a VI to calculate the major and minor tick marks based on the full axis range. Does this sound like the way to you?
11-28-2012 07:38 PM
By default, the Bar plot is using autoscale. Using a VI to calculate the tick is promising.