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

Before Change



// 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")

r = np.arange(0, 3.0, 0.01)
theta = 2 * np.pi * r
ax.plot(theta, r, color="//ee8d18", lw=3, label="a line")

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: matplotlib/matplotlib
Commit Name: a46410ecb58c5f0214bbb4ae8c6eba5fb1f5edb0
Time: 2017-05-09
Author: choldgraf@gmail.com
File Name: examples/lines_bars_and_markers/categorical_variables.py
Class Name:
Method Name:


Project Name: SINGROUP/dscribe
Commit Name: 6ef1d88fbff2ddc6c1287192ec3a6bac4c425766
Time: 2019-05-06
Author: lauri.himanen@aalto.fi
File Name: examples/mbtr.py
Class Name:
Method Name: