Labels for the X axis

@return string[]
198776
private function axisMonths(): array
    {
        return [
            'JAN' => I18N::translateContext('NOMINATIVE', 'January'),
            'FEB' => I18N::translateContext('NOMINATIVE', 'February'),
            'MAR' => I18N::translateContext('NOMINATIVE', 'March'),
            'APR' => I18N::translateContext('NOMINATIVE', 'April'),
            'MAY' => I18N::translateContext('NOMINATIVE', 'May'),
            'JUN' => I18N::translateContext('NOMINATIVE', 'June'),
            'JUL' => I18N::translateContext('NOMINATIVE', 'July'),
            'AUG' => I18N::translateContext('NOMINATIVE', 'August'),
            'SEP' => I18N::translateContext('NOMINATIVE', 'September'),
            'OCT' => I18N::translateContext('NOMINATIVE', 'October'),
            'NOV' => I18N::translateContext('NOMINATIVE', 'November'),
            'DEC' => I18N::translateContext('NOMINATIVE', 'December'),
        ];
    }
434918
public function getImageAlignmentOptions()
    {
        return [
            self::ALIGN_LEFT   => _t(__CLASS__ . '.LEFT', 'Left'),
            self::ALIGN_CENTER => _t(__CLASS__ . '.CENTER', 'Center'),
            self::ALIGN_RIGHT  => _t(__CLASS__ . '.RIGHT', 'Right')
        ];
    }
959298
def labelAxes(self, numLines=(5,5)):
        

        x1, x2, y1, y2 = mp.axis()
        ra1, dec0 = self.pixToSky(x1, y1)
        raRange, decRange = self.getRaDecRanges(numLines)
        ax = mp.gca()

        x_ticks = self.skyToPix(raRange, dec0)[0]
        y_ticks = self.skyToPix(ra1, decRange)[1]

        ax.xaxis.set_ticks(x_ticks)
        ax.xaxis.set_ticklabels([str(int(i)) for i in raRange])
        mp.xlabel("Right Ascension (deg)")

        ax.yaxis.set_ticks(y_ticks)
        ax.yaxis.set_ticklabels([str(int(i)) for i in decRange])
        mp.ylabel("Declination (deg)")
1229741
protected function getPlainLabels()
    {
        $labels = [];

        foreach (Config::getCustomModelTemplates() as $key => $properties) {
            $label = $this->makeModelLabel($key, $properties, true, $this->defaultLang);
            $labels[$this->defaultLang][] = $label;
        }

        return $labels;
    }
912443
public function label() {
		$output = null;
		if ( ! empty( $this->struct['label'] ) ) {
			$output .= '<span class="uix-text">' . esc_html( $this->struct['label'] ) . '</span>';
		}

		return $output;
	}
436107
public function getDimensions(): array
    {
        if ($this->dimensions === null) {
            $attrs = $this->getXmlAttrs();

            $this->dimensions = [
                (float) $attrs->width ?? 0,
                (float) $attrs->height ?? 0,
            ];
        }

        return $this->dimensions;
    }
1261221
public function getTextAlignmentOptions()
    {
        return [
            self::ALIGN_LEFT    => _t(__CLASS__ . '.LEFT', 'Left'),
            self::ALIGN_CENTER  => _t(__CLASS__ . '.CENTER', 'Center'),
            self::ALIGN_RIGHT   => _t(__CLASS__ . '.RIGHT', 'Right'),
            self::ALIGN_JUSTIFY => _t(__CLASS__ . '.JUSTIFY', 'Justify')
        ];
    }
595795
public function minpos(): array
    {
        $result = $this->min(['x' => true, 'y' => true]);
        $out = $result['out'];
        $x = $result['x'];
        $y = $result['y'];

        return [$out, $x, $y];
    }
450748
def labels(self):
        
        return [self._labels.get(value) or text.pretty(key)
                for key, value in sorted(self.items(), key=lambda x: x[1])]
857750
def node_labels(self):
        """"""
        assert list(self.node_indices)[0] == 0
        labels = list("m{}".format(i) for i in self.node_indices)
        return NodeLabels(labels, self.node_indices)
1091612
public function toArray()
    {
        return [
            'name'     => $this->getName(),
            'label'    => $this->getLabel(),
            'width'    => $this->getWidth(),
            'fixed'    => $this->isFixed(),
            'minWidth' => $this->getMinWidth(),
            'sortable' => $this->getSortable(),
            'type'     => $this->getType(),
        ];
    }
1342856
function DrawXAxis() {
    //Draw Tick and Label for Y axis
    $ylab =$this->FormatYTickLabel($this->x_axis_position);
    if ($this->skip_bottom_tick != 1) {
      $this->DrawVerticalTick($ylab,$this->x_axis_position);
    }

    //Draw X Axis at Y=$x_axis_postion
    ImageLine($this->img,$this->plot_area[0]+1,$this->ytr($this->x_axis_position),
        $this->xtr($this->plot_max_x)-1,$this->ytr($this->x_axis_position),$this->ndx_tick_color);

    //X Ticks and Labels
    if ($this->data_type != 'text-data') { //labels for text-data done at data drawing time for speed.
      $this->DrawHorizontalTicks();
    }
    return true;
  }
430420
def draw_axis_labels
      unless @x_axis_label.nil?
        # X Axis
        # Centered vertically and horizontally by setting the
        # height to 1.0 and the width to the width of the graph.
        x_axis_label_y_coordinate = @graph_bottom + LABEL_MARGIN * 2 + @marker_caps_height

        # TODO Center between graph area
        @d.fill = @font_color
        @d.font = @font if @font
        @d.stroke('transparent')
        @d.pointsize = scale_fontsize(@marker_font_size)
        @d.gravity = NorthGravity
        @d = @d.annotate_scaled(@base_image,
                                @raw_columns, 1.0,
                                0.0, x_axis_label_y_coordinate,
                                @x_axis_label, @scale)
        debug { @d.line 0.0, x_axis_label_y_coordinate, @raw_columns, x_axis_label_y_coordinate }
      end

      unless @y_axis_label.nil?
        # Y Axis, rotated vertically
        @d.rotation = -90.0
        @d.gravity = CenterGravity
        @d = @d.annotate_scaled(@base_image,
                                1.0, @raw_rows,
                                @left_margin + @marker_caps_height / 2.0, 0.0,
                                @y_axis_label, @scale)
        @d.rotation = 90.0
      end
    end
885668
public function getLabelAttributes()
    {
        $result = [];
        $label = $this->element->getLabel();
        foreach ($label->getAttributes() as $attribute => $value) {
            if (null === $value) {
                $result[] = $attribute;
                continue;
            }

            $result[] = "{$attribute}=\"{$value}\"";
        }
        return implode(' ', $result);
    }
1307829
def get_label(self, x, w):
        
        scores = np.dot(x,w)
        return np.argmax(scores,axis=1).transpose()
511146
public static function getAllPatternCacheSubkeys() : array
    {
        $subkeys = [];
        $chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'];

        foreach ($chars as $charOne) {
            foreach ($chars as $charTwo) {
                $subkeys[$charOne . $charTwo] = '';
            }
        }

        return $subkeys;
    }
1225007
function drawAxisLabels() {
            if (yAxisLabel) {
                if (yAxisLabelEl) {
                    yAxisLabelEl.remove();
                }
                yAxisLabelEl = svg.select('.y-axis-label')
                  .append('text')
                    .classed('y-axis-label-text', true)
                    .attr('x', -chartHeight / 2)
                    .attr('y', yAxisLabelOffset)
                    .attr('text-anchor', 'middle')
                    .attr('transform', 'rotate(270 0 0)')
                    .text(yAxisLabel);
            }

            if (xAxisLabel) {
                if (xAxisLabelEl) {
                    xAxisLabelEl.remove();
                }
                xAxisLabelEl = svg.select('.x-axis-label')
                  .append('text')
                    .attr('y', xAxisLabelOffset)
                    .attr('text-anchor', 'middle')
                    .classed('x-axis-label-text', true)
                    .attr('x', chartWidth / 2)
                    .text(xAxisLabel);
            }
        }