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

Skip to content

Commit b04880a

Browse files
committed
fixed list of backends in the rc template
svn path=/trunk/matplotlib/; revision=5508
1 parent a61ff31 commit b04880a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

matplotlibrc.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# such as 0.75 - a legal html color name, eg red, blue, darkslategray
2020

2121
#### CONFIGURATION BEGINS HERE
22-
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
23-
# WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
22+
# the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg
23+
# QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template
2424
backend : %(backend)s
2525
numerix : %(numerix)s # numpy, Numeric or numarray
2626
#maskedarray : False # True to use external maskedarray module

src/ft2font.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ FT2Image::py_as_array(const Py::Tuple & args) {
265265
_VERBOSE("FT2Image::as_array");
266266
args.verify_length(0);
267267

268-
int dimensions[2];
268+
npy_intp dimensions[2];
269269
dimensions[0] = get_height(); //numrows
270270
dimensions[1] = get_width(); //numcols
271271

272272

273-
//PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNewFromData(2, dimensions, PyArray_UBYTE, _buffer);
274-
273+
PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNewFromData(2, dimensions, PyArray_UBYTE, _buffer);
275274

275+
/*
276276
277277
PyArrayObject *A = (PyArrayObject *) PyArray_FromDims(2, dimensions, PyArray_UBYTE);
278278
@@ -284,7 +284,7 @@ FT2Image::py_as_array(const Py::Tuple & args) {
284284
while (src != src_end) {
285285
*dst++ = *src++;
286286
}
287-
287+
*/
288288

289289
return Py::asObject((PyObject*)A);
290290
}

0 commit comments

Comments
 (0)