Abstract¶
A small demo embedding external content via xref. The content should be present in web and pdf exports, however it appears only in web.
Directly with the inline  syntax¶
Loading...
Passing the reference to the figure directive¶
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.scatter("Horsepower", "Miles_per_Gallon",
c="Acceleration", data=data.cars())
_ = ax.set(xlabel="Horsepower", ylabel="Miles per gallon",
title="Horsepower and miles per gallon")A matplotlib image of the cars data from the myst guide
