public Axis layoutAxis() { AxisLabeler labeler = new NoOpAxisLabeler(); if (options.symbol is Numeric) { switch(algorithm) { case Algorithm.OURS: labeler = new ExtendedAxisLabeler(); break; case Algorithm.HECKBERT: labeler = new HeckbertAxisLabeler(); break; case Algorithm.MATPLOTLIB: labeler = new MatplotlibAxisLabeler(); break; case Algorithm.WILKINSON: labeler = new WilkinsonAxisLabeler(); break; } } else if (options.symbol is Factor) { labeler = new CategoricalAxisLabeler(); } return labeler.generate(options, AxisDensity); }
public Axis layoutAxis() { AxisLabeler labeler = new NoOpAxisLabeler(); if (options.symbol is Numeric) { switch (algorithm) { case Algorithm.OURS: labeler = new ExtendedAxisLabeler(); break; case Algorithm.HECKBERT: labeler = new HeckbertAxisLabeler(); break; case Algorithm.MATPLOTLIB: labeler = new MatplotlibAxisLabeler(); break; case Algorithm.WILKINSON: labeler = new WilkinsonAxisLabeler(); break; } } else if (options.symbol is Factor) { labeler = new CategoricalAxisLabeler(); } return(labeler.generate(options, AxisDensity)); }