Interface ContourPlot.TickMarkGenerator

    • Method Detail

      • genTicksAndLabels

        ContourPlot.Pair<double[],​java.lang.String[]> genTicksAndLabels​(double min,
                                                                              double max,
                                                                              int desiredNumTicks,
                                                                              boolean verticalAxis)
        Generates a number of tick marks and corresponding labels. The first entry of the returned pair are the tick mark values, the second part are the corresponding labels.
        Parameters:
        min - minimum of value range for which ticks marks are to be generated
        max - maximum of value range for which ticks marks are to be generated
        desiredNumTicks - the desired number of generated tick marks, not obligatory, can also create less or more tick marks if that leads to better tick values.
        verticalAxis - true if marks are for vertical axis, false when for horizontal axis
        Returns:
        pair of a tick mark value array and corresponding label array for these values