fdad18860aadc13b839f1ba2c08d0d7926687c71,examples/pie_and_polar_charts/polar_legend.py,,,#,13

Before Change


plt.rc("ytick", labelsize=15)

// force square figure and square axes looks better for polar, IMO
fig = plt.figure(figsize=(8, 8))
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8],
                  projection="polar", facecolor="//d5de9c")

After Change


// snippet places the legend"s lower left corner just outside of the polar axes
// at an angle of 67.5 degrees in polar coordinates.
angle = np.deg2rad(67.5)
ax.legend(loc="lower left",
          bbox_to_anchor=(.5 + np.cos(angle)/2, .5 + np.sin(angle)/2))

plt.show()

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: fdad18860aadc13b839f1ba2c08d0d7926687c71
Time: 2019-08-08
Author: anntzer.lee@gmail.com
File Name: examples/pie_and_polar_charts/polar_legend.py
Class Name:
Method Name:


Project Name: pysb/pysb
Commit Name: 41ee87f1fa574437740233acc6b9ede488ccfb4b
Time: 2010-01-19
Author: jmuhlich@bitflood.org
File Name: earm_figures.py
Class Name:
Method Name: fig_4b


Project Name: scikit-learn/scikit-learn
Commit Name: acb8ac5145cfd88fdbd2d381b34883b2c212c8c5
Time: 2020-06-25
Author: drehbleistift@gmail.com
File Name: examples/miscellaneous/plot_isotonic_regression.py
Class Name:
Method Name: