apply_tufte#

agabpylib.plotting.plotstyles.apply_tufte(ax, withgrid=False, minorticks=False, gridboth=False, yspine='left')#

Apply the “Tufte” style to the plot axes contained in the input axis object.

This mimics the sparse style advocated by Tufte in his book “The Visual Display of Quantitative Information”.

Parameters:
  • ax (matplotlib.axes) – The axis object to configure.

  • withgrid (boolean) – If True a grid is displayed in the plot background

  • minorticks (boolean) – If true minor tickmarks are drawn.

  • gridboth (boolean) – If True minor tickmarks are also used for the grid

  • yspine (string {"left", "right"}) – “left”: set the vertical axis on the left, “right”: set vertical axis on right (default “left”)

Return type:

Nothing.