Example usage for org.jfree.chart.axis SymbolAxis setUpperMargin

List of usage examples for org.jfree.chart.axis SymbolAxis setUpperMargin

Introduction

In this page you can find the example usage for org.jfree.chart.axis SymbolAxis setUpperMargin.

Prototype

public void setUpperMargin(double margin) 

Source Link

Document

Sets the upper margin for the axis (as a percentage of the axis range) and sends an AxisChangeEvent to all registered listeners.

Usage

From source file:org.jfree.chart.demo.SymbolAxisDemo1.java

private static JFreeChart createChart(XYDataset xydataset) {
    SymbolAxis symbolaxis = new SymbolAxis("Domain", new String[] { "A", "B", "C", "D" });
    SymbolAxis symbolaxis1 = new SymbolAxis("Range", new String[] { "V", "X", "Y", "Z" });
    symbolaxis1.setUpperMargin(0.0D);
    XYLineAndShapeRenderer xylineandshaperenderer = new XYLineAndShapeRenderer(false, true);
    XYPlot xyplot = new XYPlot(xydataset, symbolaxis, symbolaxis1, xylineandshaperenderer);
    JFreeChart jfreechart = new JFreeChart("SymbolicAxis Demo 1", xyplot);
    return jfreechart;
}