Skip to content

setLinesPerRangeLabel() Doesn't Do What It Says #114

Description

@KennethEvans
  • Description of the problem: setLinesPerRangeLabel(n) has no effect on the labeling. There is one label per range step not one label per n range steps.
  • Steps to reproduce the issue: See below
  • Version(s) of Androidplot being used: 1.5.9
  • A stacktrace if the issue is causing a crash: No crash

It is labeling every minor grid line, not every major grid line. It does indicate the major and minor grid lines. Such labeling, of course, is not what you want.

The screen dump is the result of this code:

        XYSeriesFormatter<XYRegionFormatter> formatter =
                new LineAndPointFormatter(Color.RED, null, null, null);
        formatter.setLegendIconEnabled(false);
        mSeries = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY,
                "Series 1", 0, 10, 20, 30, 40, 50, 60, 70, 80, 90);
        mPlot.addSeries(mSeries, formatter);
        mPlot.setRangeStep(StepMode.INCREMENT_BY_VAL, 1);
        mPlot.setLinesPerRangeLabel(10);

Screenshot_Androidplot_Test small

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions