SetYTickLabelPos
Prev | PHPlot Function Reference | Next

## SetYTickLabelPos

SetYTickLabelPos — Position the Y tick labels

## Synopsis

    $plot->SetYTickLabelPos($ytlp)

## Description

`SetYTickLabelPos` determines where (and if) the Y tick labels are drawn. The labels can be drawn on the left side of the plot, on the right side of the plot, in both positions, at the Y axis (even if it is in the middle of the plot), or not drawn at all.

## Parameters

`$ytlp`

  A string indicating the desired position for the Y tick labels:

  Position | Description
  --- | ---
  plotleft | Tick labels on the left side of the plot
  plotright | Tick labels on the right side of the plot
  both | Tick labels on both left and right sides of the plot
  yaxis | Tick labels at Y axis (even if the axis is in the middle of the plot)
  none | No tick labels

## Notes

The default position for the Y tick labels is on the left side of the plot.

This applies only to tick labels. You may want the tick marks to be in the same positions as the tick labels. To position the tick marks, see SetYTickPos.

Unlike the X axis, which is by default drawn at Y=0, the Y axis is by default drawn at the left side of the plot, not at X=0. It can be moved to a different position with SetYAxisPosition. If it isn't moved, 'yaxis' and 'plotleft' positions are the same.

Prev | Up | Next
SetYTickIncrement | Home | SetYTickLength