# 6.7.9 Stack Column Plot with Different Positive and Negative Y Scale

## Summary

We will show how you can use axis break without a gap to produce this graph, that has much larger Y scale range for the negative bars.

Minimum Origin Version Required: 2015 SR0

## What You Will Learn

This tutorial will show you how to:

• create a stacked column plot with error bars.
• enable an axis break without a gap.
• divide one axis into several segments and set scales separately.

## Steps to Add Axis Break with No Gap

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.

Also, you can see this graph in Origin Central(Select Help: Origin Central menu or press F11 key). It is listed under the Column and Bar Charts sample graph table. Double-clicking on the thumbnail will open the target folder.

1. Open Tutorial Data.opj and browse to the Custom Axis Scale to Show Different Scale folder in Project Explorer and activate the workbook sample.
2. select all the columns and choose Plot > Basic 2D :Stacked Column to create a stacked column plot with error bars.
3. Positive columns cannot be seen since their absolute values are too small comparing to those of negative columns.
4. We can break the Y axis at Y=0 and use different axis scale for those two segments. First double click on the Y axis to open the Axis dialog and set Y Range (in Vertical icon) to be from -180000 to 80
5. Then go to the Breaks tab with Vertical icon active, and enable 1 axis break. Also set the Break Half Length to 0 so the break indicator will not show. Set both the Break From and the Break To to 0 so the axis will break at 0 and no break gap shows. Uncheck Auto Postion and enter 50 for the Position cell.
6. Set Custom Scale for the region after break (Y>0)by clicking Details:
7. Click Apply to apply the settings and view the updated graph, you can see the axis scales are different for the regions above or below the Y=0 line and the columns for positive values can also be seen in the graph.

## More Customization Steps

The following steps can further customize the graph to be exactly the same as the image in Summary.

1. Set the X scale to be from -2 to 20, Major tick by increment 2.
2. Go to the Grids tab and select both Vertical and Horizontal icons, select the Opposite check box so the grid lines opposite to both X and Y axes will show.
3. Click OK to apply the settings and close the Axis dialog.
4. To change the positive and negative column colors to light gray and gray, double click on the columns to open the Plot Details dialog to make the changes shown below
5. To customize the legend, right click on the legend object and select Properties to open the Object Properties dialog, arrange the two legend entries to be in the same row as below and click OK
6. Move the legend to be above the graph.