compute_ylabel_x_pos Function

public function compute_ylabel_x_pos(y_tick_label_edge, rotated_width, dpi)

Compute x-position for ylabel to avoid overlapping with y-tick labels. The gap between the ylabel's right edge and the outer edge of the y-tick labels is matplotlib's axes.labelpad (AXIS_LABEL_PAD_PT), scaled to device pixels by DPI, so the label sits snug against the tick labels rather than floating far to the left.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: y_tick_label_edge
integer, intent(in) :: rotated_width
real(kind=wp), intent(in), optional :: dpi

Return Value integer