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

Skip to content

Commit 1363066

Browse files
committed
uptodate?
svn path=/trunk/matplotlib/; revision=329
1 parent 9f62c21 commit 1363066

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
New entries should be added at the top
22

3+
2004-06-03 Fixed draw_if_interactive bug for semilogx;
4+
35
2004-06-02 Fixed text clipping to clip to axes - JDH
46

57
2004-06-02 Fixed leading newline text and multiple newline text - JDH

examples/histogram_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
x = mu + sigma*randn(10000)
66

77
# the histogram of the data
8-
n, bins, patches = hist(x, 50, normed=1, bottom=0.001)
8+
n, bins, patches = hist(x, 50, normed=1)
9+
set(patches, 'facecolor', 'g', 'alpha', 0.75)
910

1011
# add a 'best fit' line
1112
y = normpdf( bins, mu, sigma)

examples/legend_demo2.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
t1 = arange(0.0, 2.0, 0.1)
66
t2 = arange(0.0, 2.0, 0.01)
77

8-
l1 = plot(t2, exp(-t2))
8+
# note that plot returns a list of lines. The "l1, = plot" usage
9+
# extracts the first element of the list inot l1 using tuple
10+
# unpacking. So l1 is a Line2D instance, not a sequence of lines
11+
l1, = plot(t2, exp(-t2))
912
l2, l3 = plot(t2, sin(2*pi*t2), '--go', t1, log(1+t1), '.')
10-
l4 = plot(t2, exp(-t2)*sin(2*pi*t2), 'rs-.')
11-
13+
l4, = plot(t2, exp(-t2)*sin(2*pi*t2), 'rs-.')
1214

1315
legend( (l2, l4), ('oscillatory', 'damped'), 'upper right')
1416
xlabel('time')

src/_backend_agg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ RendererAgg::draw_lines(const Py::Tuple& args) {
686686

687687

688688
double lw = points_to_pixels ( gc.getAttr("_linewidth") ) ;
689-
689+
std::cout << "agg lw " << lw << std::endl;
690690
agg::rgba color = get_color(gc);
691691

692692

0 commit comments

Comments
 (0)