| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c278ec8 commit ff162fd
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,11 +33,11 @@ TRANSFORMS REFACTORING | |||
| 33 | 33 | Bbox.height() Bbox.height | |
| 34 | 34 | ||
| 35 | 35 | Bbox.intervalx().get_bounds() Bbox.intervalx | |
| 36 | - Bbox.intervalx().set_bounds() | ||
| 36 | + Bbox.intervalx().set_bounds() | ||
| 37 | 37 | [Bbox.intervalx is now a property.] | |
| 38 | 38 | ||
| 39 | 39 | Bbox.intervaly().get_bounds() Bbox.intervaly | |
| 40 | - Bbox.intervaly().set_bounds() | ||
| 40 | + Bbox.intervaly().set_bounds() | ||
| 41 | 41 | [Bbox.intervaly is now a property.] | |
| 42 | 42 | ||
| 43 | 43 | Bbox.xmin() Bbox.x0 or Bbox.xmin | |
@@ -84,7 +84,7 @@ TRANSFORMS REFACTORING | |||
| 84 | 84 | [Axes.set_position() now accepts either four scalars or a | |
| 85 | 85 | transforms Bbox instance.] | |
| 86 | 86 | ||
| 87 | - [also returns a Bbox] | ||
| 87 | + [also returns a Bbox] | ||
| 88 | 88 | Axes.toggle_log_lineary() Axes.set_yscale() | |
| 89 | 89 | [Since the recfactoring allows for more than two scale types | |
| 90 | 90 | ('log' or 'linear'), it no longer makes sense to have a | |
@@ -119,10 +119,10 @@ TRANSFORMS REFACTORING | |||
| 119 | 119 | ||
| 120 | 120 | contour.py | |
| 121 | 121 | Contour._segments Contour.get_paths() | |
| 122 | - [Contour.get_paths() now returns a list of path.Path instances.] | ||
| 122 | + [Contour.get_paths() now returns a list of path.Path instances.] | ||
| 123 | 123 | ||
| 124 | 124 | figure.py | |
| 125 | - Figure.dpi.get()/set() Figure.dpi (a property) | ||
| 125 | + Figure.dpi.get()/set() Figure.dpi (a property) | ||
| 126 | 126 | ||
| 127 | 127 | patches.py | |
| 128 | 128 | get_verts() get_path() | |
@@ -150,9 +150,9 @@ TRANSFORMS REFACTORING | |||
| 150 | 150 | offsetTrans, facecolors, edgecolors, linewidths, | |
| 151 | 151 | linestyles, antialiaseds) [optional] | |
| 152 | 152 | ||
| 153 | - | ||
| 153 | + | ||
| 154 | 154 | **changed methods** ---> | |
| 155 | - draw_image(self, x, y, im, bbox) draw_image(self, x, y, im, bbox, | ||
| 155 | + draw_image(self, x, y, im, bbox) draw_image(self, x, y, im, bbox, | ||
| 156 | 156 | clippath, clippath_trans) | |
| 157 | 157 | ||
| 158 | 158 | **removed methods** ---> | |
@@ -166,9 +166,11 @@ TRANSFORMS REFACTORING | |||
| 166 | 166 | draw_polygon | |
| 167 | 167 | draw_rectangle | |
| 168 | 168 | draw_regpoly_collection | |
| 169 | - | ||
| 169 | + | ||
| 170 | 170 | END OF TRANSFORMS REFACTORING | |
| 171 | 171 | ||
| 172 | + 0.91.0 Released | ||
| 173 | + | ||
| 172 | 174 | Changed cbook.is_file_like to cbook.is_writable_file_like and | |
| 173 | 175 | corrected behavior. | |
| 174 | 176 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,6 @@ | |||
| 1 | + =============================================================== | ||
| 2 | + 2007-11-27 Released 0.91.0 at revision 4478 | ||
| 3 | + | ||
| 1 | 4 | 2007-11-13 All backends now support writing to a file-like object, not | |
| 2 | 5 | just a regular file. savefig() can be passed a file-like | |
| 3 | 6 | object in place of a file path. - MGD | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,8 @@ in mind. | |||
| 39 | 39 | * If you have altered extension code, do you pass | |
| 40 | 40 | unit/memleak_hawaii.py? | |
| 41 | 41 | ||
| 42 | + | ||
| 43 | + | ||
| 42 | 44 | == Importing and name spaces == | |
| 43 | 45 | ||
| 44 | 46 | For numpy, use: | |
@@ -103,6 +105,26 @@ newline. It may be preferable to use a temporary variable | |||
| 103 | 105 | to replace a single long line with two shorter and more | |
| 104 | 106 | readable lines. | |
| 105 | 107 | ||
| 108 | + Please do not commit lines with trailing white space, as it causes | ||
| 109 | + noise in svn diffs. If you are an emacs user, the following in your | ||
| 110 | + .emacs will cause emacs to strip trailing white space on save for | ||
| 111 | + python, C and C++ | ||
| 112 | + | ||
| 113 | + ; and similarly for c++-mode-hook and c-mode-hook | ||
| 114 | + (add-hook 'python-mode-hook | ||
| 115 | + (lambda () | ||
| 116 | + (add-hook 'write-file-functions 'delete-trailing-whitespace))) | ||
| 117 | + | ||
| 118 | + | ||
| 119 | + | ||
| 120 | + for older versions of emacs (emacs<22) you may need to do | ||
| 121 | + | ||
| 122 | + (add-hook 'python-mode-hook | ||
| 123 | + (lambda () | ||
| 124 | + (add-hook 'local-write-file-hooks 'delete-trailing-whitespace))) | ||
| 125 | + | ||
| 126 | + | ||
| 127 | + | ||
| 106 | 128 | ||
| 107 | 129 | == Licenses == | |
| 108 | 130 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - LICENSE AGREEMENT FOR MATPLOTLIB 0.90 | ||
| 1 | + LICENSE AGREEMENT FOR MATPLOTLIB 0.91 | ||
| 2 | 2 | -------------------------------------- | |
| 3 | 3 | ||
| 4 | 4 | 1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the | |
@@ -9,30 +9,30 @@ documentation. | |||
| 9 | 9 | 2. Subject to the terms and conditions of this License Agreement, JDH | |
| 10 | 10 | hereby grants Licensee a nonexclusive, royalty-free, world-wide license | |
| 11 | 11 | to reproduce, analyze, test, perform and/or display publicly, prepare | |
| 12 | - derivative works, distribute, and otherwise use matplotlib 0.90 | ||
| 12 | + derivative works, distribute, and otherwise use matplotlib 0.91 | ||
| 13 | 13 | alone or in any derivative version, provided, however, that JDH's | |
| 14 | 14 | License Agreement and JDH's notice of copyright, i.e., "Copyright (c) | |
| 15 | 15 | 2002-2007 John D. Hunter; All Rights Reserved" are retained in | |
| 16 | - matplotlib 0.90 alone or in any derivative version prepared by | ||
| 16 | + matplotlib 0.91 alone or in any derivative version prepared by | ||
| 17 | 17 | Licensee. | |
| 18 | 18 | ||
| 19 | 19 | 3. In the event Licensee prepares a derivative work that is based on or | |
| 20 | - incorporates matplotlib 0.90 or any part thereof, and wants to | ||
| 20 | + incorporates matplotlib 0.91 or any part thereof, and wants to | ||
| 21 | 21 | make the derivative work available to others as provided herein, then | |
| 22 | 22 | Licensee hereby agrees to include in any such work a brief summary of | |
| 23 | - the changes made to matplotlib 0.90. | ||
| 23 | + the changes made to matplotlib 0.91. | ||
| 24 | 24 | ||
| 25 | - 4. JDH is making matplotlib 0.90 available to Licensee on an "AS | ||
| 25 | + 4. JDH is making matplotlib 0.91 available to Licensee on an "AS | ||
| 26 | 26 | IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR | |
| 27 | 27 | IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND | |
| 28 | 28 | DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS | |
| 29 | - FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.90 | ||
| 29 | + FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.91 | ||
| 30 | 30 | WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. | |
| 31 | 31 | ||
| 32 | 32 | 5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB | |
| 33 | - 0.90 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR | ||
| 33 | + 0.91 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR | ||
| 34 | 34 | LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING | |
| 35 | - MATPLOTLIB 0.90, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF | ||
| 35 | + MATPLOTLIB 0.91, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF | ||
| 36 | 36 | THE POSSIBILITY THEREOF. | |
| 37 | 37 | ||
| 38 | 38 | 6. This License Agreement will automatically terminate upon a material | |
@@ -44,6 +44,6 @@ Licensee. This License Agreement does not grant permission to use JDH | |||
| 44 | 44 | trademarks or trade name in a trademark sense to endorse or promote | |
| 45 | 45 | products or services of Licensee, or any third party. | |
| 46 | 46 | ||
| 47 | - 8. By copying, installing or otherwise using matplotlib 0.90, | ||
| 47 | + 8. By copying, installing or otherwise using matplotlib 0.91, | ||
| 48 | 48 | Licensee agrees to be bound by the terms and conditions of this License | |
| 49 | 49 | Agreement. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,11 +51,11 @@ | |||
| 51 | 51 | pylab (if pylab is imported). | |
| 52 | 52 | ||
| 53 | 53 | matplotlib is written by John D. Hunter (jdh2358 at | |
| 54 | - gmail.com). | ||
| 54 | + gmail.com and a host of others). | ||
| 55 | 55 | """ | |
| 56 | 56 | from __future__ import generators | |
| 57 | 57 | ||
| 58 | - __version__ = '0.90.1' | ||
| 58 | + __version__ = '0.91.0' | ||
| 59 | 59 | __revision__ = '$Revision$' | |
| 60 | 60 | __date__ = '$Date$' | |
| 61 | 61 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -180,7 +180,7 @@ def _get_next_cycle_color(self): | |||
| 180 | 180 | ||
| 181 | 181 | def __call__(self, *args, **kwargs): | |
| 182 | 182 | ||
| 183 | - if self.axes.xaxis is not None and self.axes.xaxis is not None: | ||
| 183 | + if self.axes.xaxis is not None and self.axes.yaxis is not None: | ||
| 184 | 184 | xunits = kwargs.pop( 'xunits', self.axes.xaxis.units) | |
| 185 | 185 | yunits = kwargs.pop( 'yunits', self.axes.yaxis.units) | |
| 186 | 186 | if xunits!=self.axes.xaxis.units: | |
@@ -1305,6 +1305,8 @@ def draw(self, renderer=None, inframe=False): | |||
| 1305 | 1305 | ||
| 1306 | 1306 | artists = [] | |
| 1307 | 1307 | ||
| 1308 | + | ||
| 1309 | + | ||
| 1308 | 1310 | if len(self.images)<=1 or renderer.option_image_nocomposite(): | |
| 1309 | 1311 | for im in self.images: | |
| 1310 | 1312 | im.draw(renderer) | |
@@ -4798,7 +4800,7 @@ def pcolormesh(self, *args, **kwargs): | |||
| 4798 | 4800 | X = X.ravel() | |
| 4799 | 4801 | Y = Y.ravel() | |
| 4800 | 4802 | ||
| 4801 | - coords = npy.zeros(((Nx * Ny), 2), X.dtype) | ||
| 4803 | + coords = npy.zeros(((Nx * Ny), 2), dtype=float) | ||
| 4802 | 4804 | coords[:, 0] = X | |
| 4803 | 4805 | coords[:, 1] = Y | |
| 4804 | 4806 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,9 +14,6 @@ | |||
| 14 | 14 | * find - Return the indices where some condition is true; | |
| 15 | 15 | numpy.nonzero is similar but more general. | |
| 16 | 16 | ||
| 17 | - * polyfit - least squares best polynomial fit of x to y | ||
| 18 | - | ||
| 19 | - * polyval - evaluate a vector for a vector of polynomial coeffs | ||
| 20 | 17 | ||
| 21 | 18 | * prctile - find the percentiles of a sequence | |
| 22 | 19 | ||
@@ -29,11 +26,14 @@ | |||
| 29 | 26 | ||
| 30 | 27 | The following are deprecated; please import directly from numpy | |
| 31 | 28 | (with care--function signatures may differ): | |
| 29 | + | ||
| 32 | 30 | * conv - convolution (numpy.convolve) | |
| 33 | 31 | * corrcoef - The matrix of correlation coefficients | |
| 34 | 32 | * hist -- Histogram (numpy.histogram) | |
| 35 | 33 | * linspace -- Linear spaced array from min to max | |
| 36 | 34 | * meshgrid | |
| 35 | + * polyfit - least squares best polynomial fit of x to y | ||
| 36 | + * polyval - evaluate a vector for a vector of polynomial coeffs | ||
| 37 | 37 | * trapz - trapeziodal integration (trapz(x,y) -> numpy.trapz(y,x)) | |
| 38 | 38 | * vander - the Vandermonde matrix | |
| 39 | 39 | ||
@@ -46,13 +46,13 @@ | |||
| 46 | 46 | ||
| 47 | 47 | = record array helper functions = | |
| 48 | 48 | ||
| 49 | - rec2csv : store record array in CSV file | ||
| 50 | - rec2excel : store record array in excel worksheet - required pyExcelerator | ||
| 51 | - rec2gtk : put record array in GTK treeview - requires gtk | ||
| 52 | - csv2rec : import record array from CSV file with type inspection | ||
| 53 | - rec_append_field : add a field/array to record array | ||
| 54 | - rec_drop_fields : drop fields from record array | ||
| 55 | - rec_join : join two record arrays on sequence of fields | ||
| 49 | + * rec2csv : store record array in CSV file | ||
| 50 | + * rec2excel : store record array in excel worksheet - required pyExcelerator | ||
| 51 | + * rec2gtk : put record array in GTK treeview - requires gtk | ||
| 52 | + * csv2rec : import record array from CSV file with type inspection | ||
| 53 | + * rec_append_field : add a field/array to record array | ||
| 54 | + * rec_drop_fields : drop fields from record array | ||
| 55 | + * rec_join : join two record arrays on sequence of fields | ||
| 56 | 56 | ||
| 57 | 57 | For the rec viewer clases (rec2csv, rec2excel and rec2gtk), there are | |
| 58 | 58 | a bunch of Format objects you can pass into the functions that will do | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,6 @@ | |||
| 88 | 88 | 'mpl-data/fonts/pdfcorefonts/*.afm', | |
| 89 | 89 | 'mpl-data/fonts/pdfcorefonts/*.txt', | |
| 90 | 90 | 'mpl-data/fonts/ttf/*.ttf', | |
| 91 | - 'mpl-data/fonts/otf/*.otf', | ||
| 92 | 91 | 'mpl-data/images/*.xpm', | |
| 93 | 92 | 'mpl-data/images/*.svg', | |
| 94 | 93 | 'mpl-data/images/*.png', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments