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

Skip to content

Commit ec0a6d2

Browse files
committed
added fast pcolor
svn path=/trunk/matplotlib/; revision=300
1 parent b7c78ee commit ec0a6d2

2 files changed

Lines changed: 5 additions & 0 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-05-16 Added fast pcolor using PolyCollections. - JDH
4+
35
2004-05-14 Added fast polygon collections - changed scatter to use
46
them. Added multiple symbols to scatter. 10x speedup on
57
large scatters using *Agg and 5X speedup for ps. - JDH

examples/pcolor_demo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
See pcolor_demo2 for a much faster way of generating pcolor plots
44
"""
55
from __future__ import division
6+
from matplotlib.patches import Patch
67
from matplotlib.matlab import *
78

89
def func3(x,y):
@@ -18,6 +19,8 @@ def func3(x,y):
1819

1920
Z = func3(X, Y)
2021
pcolor(X, Y, Z, shading='flat')
22+
#pcolor_classic(X, Y, Z, shading='flat')
23+
2124
#axis([-3, 3, -3, 3])
2225
#axis('off')
2326
#savefig('pcolor_demo')

0 commit comments

Comments
 (0)