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

Skip to content

Commit eeba06b

Browse files
committed
added mpl src
svn path=/trunk/matplotlib/; revision=359
1 parent 77c1c5e commit eeba06b

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ New entries should be added at the top
88

99
2004-06-23 ported code to Perry's new colormap and norm scheme. Added
1010
new rc attributes image.aspect, image.interpolation,
11-
image.cmap, image.lut
11+
image.cmap, image.lut, image.origin
1212

1313
2004-06-20 backend_gtk.py: replace gtk.TRUE/FALSE with True/False.
1414
simplified _make_axis_menu(). - SC

examples/pcolor_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def func3(x,y):
2020

2121
Z = func3(X, Y)
2222
pcolor(X, Y, Z, shading='flat')
23-
#colorbar()
24-
savefig('pcolor_demo')
23+
colorbar()
24+
#savefig('pcolor_demo')
2525
show()
2626

2727

src/mplutils.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <iostream>
2+
#include "mplutils.h"
3+
4+
5+
void _VERBOSE(const std::string& s) {
6+
#ifdef VERBOSE
7+
std::cout << s << std::endl;
8+
#endif
9+
}

src/mplutils.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* mplutils.h --
2+
*
3+
* $Header$
4+
* $Log$
5+
* Revision 1.1 2004/06/24 20:11:17 jdh2358
6+
* added mpl src
7+
*
8+
*/
9+
10+
#ifndef _MPLUTILS_H
11+
#define _MPLUTILS_H
12+
13+
#include <string>
14+
#include <iostream>
15+
16+
void _VERBOSE(const std::string&);
17+
#endif

0 commit comments

Comments
 (0)