Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e88fe42

Browse files
committed
added fig_x
svn path=/trunk/matplotlib/; revision=5015
1 parent cecbf92 commit e88fe42

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

doc/figures/fig_x.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import numpy as np
2+
import matplotlib.pyplot as plt
3+
import matplotlib.lines as lines
4+
fig = plt.figure()
5+
6+
l1 = lines.Line2D([0, 1], [0, 1], transform=fig.transFigure, figure=fig)
7+
8+
l2 = lines.Line2D([0, 1], [1, 0], transform=fig.transFigure, figure=fig)
9+
10+
fig.lines.extend([l1, l2])
11+
12+
fig.savefig('fig_x')
13+
plt.show()

doc/figures/make.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def figs():
88
import dollar_ticks
99
import fig_axes_customize_simple
1010
import fig_axes_labels_simple
11+
import fig_x
1112

1213
print 'all figures made'
1314
for fname in glob.glob('*.pyc'):

0 commit comments

Comments
 (0)