06-18-2011 03:51 AM
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.
06-19-2011 02:13 AM - edited 06-19-2011 02:16 AM
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.