timeit(
    '[ (1/sqrt(a), 0, 0), ((c/sqrt(a) - c/sqrt(d))/(a - d), 1/sqrt(d), 0), (0, 0, 1) ]'
    , setup=all_setup, number=num_to_run)
Efficient way to plotting multiple images with many patches in matplotlib?