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

Skip to content

Commit e189baa

Browse files
committed
fixed a filling rule bug in agg
svn path=/trunk/matplotlib/; revision=3294
1 parent 9b9e42c commit e189baa

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

examples/simple_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
t = arange(0.0, 1.0+0.01, 0.01)
99
s = cos(2*2*pi*t)
10-
plot(t, s)
10+
plot(t, s, '-', lw=2)
1111

1212
xlabel('time (s)')
1313
ylabel('voltage (mV)')

lib/matplotlib/cbook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ class is even handier, and prettier to use. Whenever you want to
122122
"""
123123
def __init__(self, **kwds):
124124
self.__dict__.update(kwds)
125-
125+
126+
126127
def unique(x):
127128
'Return a list of unique elements of x'
128129
return dict([ (val, 1) for val in x]).keys()

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#### CONFIGURATION BEGINS HERE
2727
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
2828
# Agg Cairo GD GDK Paint PS PDF SVG Template
29-
backend : WXAgg
29+
backend : TkAgg
3030
numerix : numpy # numpy, Numeric or numarray
3131
units : True
3232
#interactive : False # see http://matplotlib.sourceforge.net/interactive.html

src/_backend_agg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi,
273273
rendererAA = new renderer_aa(*rendererBase);
274274
rendererBin = new renderer_bin(*rendererBase);
275275
theRasterizer = new rasterizer();
276-
theRasterizer->filling_rule(agg::fill_even_odd);
276+
//theRasterizer->filling_rule(agg::fill_even_odd);
277277
//theRasterizer->filling_rule(agg::fill_non_zero);
278278

279279
};

0 commit comments

Comments
 (0)