Commit 089a7b1f authored by Sven Brauch's avatar Sven Brauch

matplotlib: correctly document return value of plt.subplots()

worth doing by hand, very common entry-point for type inference
parent b447facd
import matplotlib.pyplot as plt
import matplotlib.axes._axes
from matplotlib.figure import *
from matplotlib.axes import *
def function_figure():
returns = Figure()
def function_subplots():
l_ret = (Figure(), Axes())
l_axarr = [Axes()]
l_ret = (plt.Figure(), matplotlib.axes._axes.Axes() if None else [matplotlib.axes._axes.Axes()] if None else [[matplotlib.axes._axes.Axes()]])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment