LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Graph X Axis positioning of bar

Solved!
Go to solution

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...

Download All
0 Kudos
Message 1 of 6
(2,757 Views)

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

0 Kudos
Message 2 of 6
(2,742 Views)

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.

 

 

0 Kudos
Message 3 of 6
(2,740 Views)

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.

0 Kudos
Message 4 of 6
(2,721 Views)

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? 

0 Kudos
Message 5 of 6
(2,708 Views)
Solution
Accepted by topic author id

By default, the Bar plot is using autoscale. Using a VI to calculate the tick is promising.

0 Kudos
Message 6 of 6
(2,694 Views)