VAL_BASE_ZERO_VERTICAL_BAR

I am trying to plot a histogram (PlotXY....) with the following plot stile:
VAL_BASE_ZERO_
VERTICAL_BAR
Vertical bars are plotted for each plotted point.  The bars extend upward and downward from zero, depending on whether the data value is positive or negative.
The y-axis is also auto-scaled. All my data points are Greater then ZERO and of type integer.
I hoped to see a histogram where the y-axis start with ZERO, BUT it starts with the lowest value of the Y-array.
What am I doing wrong????
(I don't want to add an extra set of points with the with  Y-value ZERO)
Solved!
Go to Solution.

The behaviour you are observing depends exatly on AutoScale settings: graph scaling operates on array values regardless the plot type): you can test it with the attached simple project.
However, it doesn't seem to me that this behaviour is to be changed: it acts as if you had manually set axis scaling so that part of the plot lies out of viewable graph area; nevertheless, an update in function documentation may be needed.
In your situation, you should manually set axis scaling to (0 ÷ max) having calculated array max value before.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Attachments:
ScaleChange.zip ‏8 KB

Similar Messages

Maybe you are looking for