5f3449d74419798a02e86f320944e087cdab1c6e,tutorials/intermediate/gridspec.py,,,#,46

Before Change


        label = "Width: {}\nHeight: {}".format(widths[c], heights[r])
        ax.annotate(label, (0.1, 0.5), xycoords="axes fraction", va="center")

fig5.tight_layout()

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The ``subplots`` and ``gridspec`` methods can be combined since it is
// sometimes more convenient to make most of the subplots using ``subplots``

After Change


f4_ax1.annotate("GridSpec[0, 0]", **anno_opts)
fig4.add_subplot(spec4[0, 1]).annotate("GridSpec[0, 1:]", **anno_opts)
fig4.add_subplot(spec4[1, 0]).annotate("GridSpec[1:, 0]", **anno_opts)
fig4.add_subplot(spec4[1, 1]).annotate("GridSpec[1:, 1:]", **anno_opts)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Another option is to use the ``width_ratios`` and ``height_ratios``
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: 5f3449d74419798a02e86f320944e087cdab1c6e
Time: 2018-07-30
Author: sandquist.fredrik@gmail.com
File Name: tutorials/intermediate/gridspec.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: 2c1c531d825812b90197baa15872b8e84ff2643f
Time: 2014-06-16
Author: virgile.fritsch@gmail.com
File Name: plot_localizer_mass_univariate_methods.py
Class Name:
Method Name:


Project Name: hpclab/rankeval
Commit Name: 8ca98bfc5d01f672a5ccfb507660e3877a13738f
Time: 2017-07-27
Author: cristina.i.muntean@gmail.com
File Name: rankeval/visualization/effectiveness.py
Class Name:
Method Name: plot_document_graded_relevance