Note
Go to the end to download the full example code.
Spines
ax.spines is a dict of the four box sides, each independently
visible/colored – hide the top and right spines for a “despined” look, and
color the remaining two differently so it’s clear each side is its own
independent Spine, not one shared box color.

Live figure — pick a tool, then zoom, pan, point-pick or annotate. Nothing is active until a tool is selected.
View this figure’s Vega export ↗ — the raw JSON spec, rendered live by a real Vega engine.
View this figure’s Vega-Lite export ↗ — the raw JSON spec(s), rendered live by a real Vega-Lite engine.
import numpy as np
import plotpress
x = np.linspace(0, 10, 200)
fig, ax = plotpress.subplots()
ax.plot(x, np.sin(x), color="#1f77b4")
ax.spines["top"].set_visible(False)
ax.spines["right"].set_visible(False)
ax.spines["left"].set_color("green")
ax.spines["bottom"].set_color("red")
ax.spines["bottom"].set_linewidth(1.5)
ax.set_title("despined, with distinct per-side colors")
Total running time of the script: (0 minutes 0.062 seconds)