08-10-2005 05:07 PM
08-11-2005 11:54 PM
Hello swati505,
When you plot using vertical bars, the center of the vertical bar is going to map to the values in your plot array. Having said that, the left and rightmost edge of the vertical bar is going to expand to the left and right of the value you passed in the plot array. If you don't set the range of the X axis to account for this, the full width of the left and rightmost bars are not going to be displayed.
So you should manually set the range of the X axis to be larger than the number of data points to be plotted. This allows for extra space on the left and right of the graph so that those bars will be completely displayed. i.e. If there are 4 data points, the range of the X axis should be -1 to 4 instead of 0 to 3.
Hope that helps.
08-15-2005 04:32 PM
08-16-2005 04:26 PM
08-16-2005 04:38 PM
Hello Swati
If you're only planning on plotting a handful of points (such as 3) you might want to look into plotting individual rectangles (using the PlotRectangle function) instead of using PlotY. This will allow you to control the exact width of the individual bars.
Luis
NI
08-16-2005 06:04 PM - edited 08-16-2005 06:04 PM
Message Edited by cdk52 on 08-17-2005 10:08 AM
Message Edited by cdk52 on 08-17-2005 10:16 AM