b5155b7bf1b03eb6b6b7d4426cb0daec4f5d8fe5,examples/text_labels_and_annotations/text_rotation_relative_to_line.py,,,#,21

Before Change



// Rotate angle
angle = 45
trans_angle = plt.gca().transData.transform_angles(np.array((45,)),
                                                   l2.reshape((1, 2)))[0]

// Plot text

After Change


import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots()

// Plot diagonal line (45 degrees)
h = ax.plot(range(0, 10), range(0, 10))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: b5155b7bf1b03eb6b6b7d4426cb0daec4f5d8fe5
Time: 2020-02-06
Author: anntzer.lee@gmail.com
File Name: examples/text_labels_and_annotations/text_rotation_relative_to_line.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: fa23f8814ab9d123d5b98ff9b5723c2f99fdd295
Time: 2019-05-12
Author: anntzer.lee@gmail.com
File Name: examples/misc/contour_manual.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: ec5e8863a6352da673b55cb971529f38278cf64e
Time: 2018-03-26
Author: pmhobson@gmail.com
File Name: examples/images_contours_and_fields/contour_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 27c2dc10bb9f83026db6378c151d8108fc044af8
Time: 2018-06-27
Author: jklymak@gmail.com
File Name: examples/images_contours_and_fields/contour_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 0289b4f9845659c7afd21b24700dbdad9f1c1155
Time: 2016-12-04
Author: nelle.varoquaux@gmail.com
File Name: examples/pylab_examples/trigradient_demo.py
Class Name:
Method Name: