PDA

View Full Version : Control Y Range of Stacked Bar Chart



PSUGradAtl
11-18-2011, 12:51 PM
I want to control the Y Range of a stacked bar chart.

Case #1 plots the data properly but has no specification on the yrange:
y_data = [10,2]
bar,y_data
END

In case #2, I attempted to control the yrange using the yrange property of the bar command:
y_data = [10,2]
bar,y_data,yrange=[1,13]
END

However, in case #2, yrange doesn't allow precise control of the y range. So, in case #3 I tried using !Y.range:
y_data = [10,2]
!Y.Range = [1, 13]
bar,y_data
END

However, in case #3, although the Y range is exactly as I specified (1 to 13), the drawn bars no longer represent the data (the bars are shown each drawn from 1 to 13 and 1 to 3 which are not representative of the values 10 and 2, respectively).

How do I control the y range explicitly and also get the bars to represent the data?

Thanks,
Jim

rwagner
11-21-2011, 04:55 PM
There is a bug filed on this issue. Please contact technical support for assistance.
-Ryan