Skip to content

Merge v0.99.x into v1.0.x #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1,010 commits merged into from
Feb 20, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1010 commits
Select commit Hold shift + click to select a range
97b98e3
added bbox_inches and pad_inches to savefig signature
jdh2358 Jun 10, 2010
b5ce842
[3011582] stix_fonts_demo.py assert error
mdboom Jun 10, 2010
8571454
[3010563] misaligned title text when using GTK backend
mdboom Jun 10, 2010
ca71d4c
[2908399] Support clip paths in QuadMesh with gouraud shading
mdboom Jun 10, 2010
fda682e
Update to the 1.0 STIX fonts.
mdboom Jun 10, 2010
39cdb96
backend_wx: remove ancient comment string
efiring Jun 11, 2010
7e247f6
[3014606] fix set_alpha in backend_cairo
efiring Jun 11, 2010
f0c0647
[3013559] cbook.get_sample_data: open image file in binary mode. Patc…
efiring Jun 11, 2010
bd77bf2
Take stroke width into account when quantizing rectilinear paths. Di…
mdboom Jun 11, 2010
527b7d9
Add a global rcParam 'path.snap' that, when False, turns off all pixe…
mdboom Jun 11, 2010
7b9ec69
Update the declaration of get_path_iterator, which was changed in
mdehoon Jun 12, 2010
f4a598a
No CGContextGetLineWidth in Cocoa; pass the line width from Python in…
mdehoon Jun 12, 2010
f98d889
Fix markerscale and scatterpoints keyword arguments in legend. Thanks…
leejjoon Jun 12, 2010
f44627f
windowing: add module docstring, fix import
efiring Jun 12, 2010
032f40b
backend_tkagg: show() gets an experimental kwarg for testing blocking…
efiring Jun 12, 2010
4238e82
backend_tkagg: fix major typo from last commit
efiring Jun 12, 2010
6c285f3
backend_tkagg: one more typo from commit before last
efiring Jun 12, 2010
16b98a5
backends: move windowing.py into backends--it is very backend-specific
efiring Jun 12, 2010
34c3305
[3015013] use atexit in _pylab_helpers to ensure orderly shutdown.
efiring Jun 13, 2010
dea0692
[2924597] coding_guide.rst: refer to memleak_hawaii3.py
efiring Jun 13, 2010
ddca975
remade filesave icon bitmapped files from filesave.svg
efiring Jun 13, 2010
7e24f90
[2922387] axis.py: docstring fix by Ori Avtalion
efiring Jun 13, 2010
e31c214
[2922266] pyplot_tutorial.rst: remove tabs from code (patch by Ori Av…
efiring Jun 13, 2010
1044367
[1467533] pie shadows are tagged with _nolabel_
efiring Jun 14, 2010
a67bf03
[1474254] getp, setp: minor clarifications
efiring Jun 14, 2010
0ddf6cd
numpy version check: make it more readable
efiring Jun 14, 2010
7ac3b9e
[3015614] give examples/api/font_file.py a fighting chance on Linux a…
efiring Jun 14, 2010
ec438ca
cbook: handle empty string returned by locale.getpreferredencoding
efiring Jun 14, 2010
cb5b37b
[2895114] _get_data_path: improve py2exe handling and readability.
efiring Jun 14, 2010
6dad4e4
cutils.py: fix and clarify absolute imports, so I don't get confused …
efiring Jun 14, 2010
9e7c950
Support the "Enter" key event in the Qt4 backend.
mdboom Jun 15, 2010
0feec0a
Use the word "snapping" everywhere for consistency. This is the word…
mdboom Jun 15, 2010
0a8debf
Fix out-of-buffer read errors.
mdboom Jun 15, 2010
fa6f537
Fix accessing uninitialized memory error.
mdboom Jun 16, 2010
6f2860f
add np and plt to default plot namespace in plot directive
jdh2358 Jun 17, 2010
5cea356
[1530104, 3017380] slider grabs mouse; patch by C. Gohlke and baxissimo
efiring Jun 19, 2010
2809e0f
[2564093] backend_wx: don't initialize printer by default; deprecate …
efiring Jun 20, 2010
b9dddfb
finance: restore original adjustment algorithm, but use ndarray.
efiring Jun 20, 2010
3382511
mpl_toolkits.axisartist.grid_finder.MaxNLocator supports factor
leejjoon Jun 20, 2010
fa0991e
remove auto_subplots_adjust.py entry from howto_faq.rst to test doc-b…
leejjoon Jun 20, 2010
61f25e5
remove align_ylabels.py entry from howto_faq.rst to test doc-build
leejjoon Jun 20, 2010
a6a2844
revert r8445,8446 and fix plot_directive.py to support sphinx 1.0
leejjoon Jun 20, 2010
9b5d5bf
Add Axes.tick_params and pyplot.tick_params to control tick and tick …
efiring Jun 21, 2010
0f4a30c
[3015217] Don't add piwik code to html docs by default
mdboom Jun 21, 2010
3220c33
[3018374] Link to examples is hardcoded
mdboom Jun 21, 2010
b27e0b5
Let pcolor antialiasing default be controlled by patch.antialiasing.
efiring Jun 21, 2010
50f4601
tick_params: fixed errors in handling top, bottom, etc. kwargs.
efiring Jun 21, 2010
634b683
Debian Bug#585442: python-matplotlib: crashes when calling axis() aft…
mdboom Jun 22, 2010
a0b0080
Debian Bug#585442: python-matplotlib: crashes when calling axis() aft…
mdboom Jun 22, 2010
1c7a63c
Fix severe slowness with very high image magnification.
mdboom Jun 22, 2010
88eb216
Do image clipping of images in doubles rather than ints -- prevents t…
mdboom Jun 23, 2010
fb3e697
Uses doubles for rectangle clipping everywhere in the Agg backend.
mdboom Jun 23, 2010
6e629b5
Add unit test to ensure that rendering complexity exceeded exception …
mdboom Jun 23, 2010
6b64386
Standardizing formatting of C/C++ code.
mdboom Jun 24, 2010
1915c83
[3020704] set_xlim() problem
mdboom Jun 24, 2010
17b26f5
Use the more standard term "pop" rather than "flush" for removing the…
mdboom Jun 24, 2010
dc89454
Clipping to the figure rectangle doesn't work on curves, so turn it o…
mdboom Jun 24, 2010
dc5b8c6
Speed up Gouraud shading in Agg backend.
mdboom Jun 24, 2010
55f052f
[3018198] Fixing the build with clang
mdboom Jun 24, 2010
069f78e
backend_gtk: don't use idle events for draw_rubberband.
efiring Jun 24, 2010
bdf00c4
disable non-functional interactive.py demo: print message and exit.
efiring Jun 26, 2010
76a3ef6
docs: be consistent in referring to MATLAB.
efiring Jun 26, 2010
9f12d1b
examples: fix references to MATLAB
efiring Jun 26, 2010
fa0b68a
docstrings: use standard spelling and capitalization of MATLAB
efiring Jun 26, 2010
02b39b9
docs: add 4 new pyplot functions
efiring Jun 26, 2010
66dea41
_get_unsampled_image now returns a sliced image if possible
leejjoon Jun 27, 2010
f4a6028
Fix broken result image.
mdboom Jun 28, 2010
a9042cf
Use automatic memory management to simplify the code.
mdboom Jun 28, 2010
5b911c9
Formatting only
mdboom Jun 28, 2010
b9f6136
bump version number for rc
jdh2358 Jun 29, 2010
e01c3c6
docs: build with makefile produced by Sphinx
astraw Jun 29, 2010
721ad89
Force timer interval to int. This silences an exception for Tk and a …
dopplershift Jun 30, 2010
5ecf50a
set_xlim, set_ylim: turn off autoscaling; added autoscale method
efiring Jun 30, 2010
d9b4b34
doc changes for last commit
efiring Jun 30, 2010
8999f6f
don't fail in directories are missing
astraw Jul 1, 2010
9b1249e
added christophs dvipng_hack_alpha import fix
jdh2358 Jul 2, 2010
c716d21
revert accidental commit of WrapPython which was testing for swab bug
jdh2358 Jul 2, 2010
d0d2110
fix swab bug so mpl will compile on solaris with cxx 6
jdh2358 Jul 2, 2010
e755f60
fix typos in gridspec docs
jdh2358 Jul 2, 2010
921e87c
Allow set_ticks to take a locator object, since this is valid for the…
dopplershift Jul 2, 2010
e423cdf
use class var rather than self for texmanager hack state
jdh2358 Jul 2, 2010
28c13d3
tick_params works with existing ticks instead of starting with new ones
efiring Jul 2, 2010
8807716
Clean up docstring of restore_region().
dopplershift Jul 2, 2010
42a3b54
colorbar: use pcolormesh instead of pcolor, to reduce artifacts
efiring Jul 3, 2010
a662963
fix new bugs in handling of xlim, ylim, margins
efiring Jul 3, 2010
b7e3535
applied Ben's mplconfig patch
jdh2358 Jul 5, 2010
efb5db8
Applied Ben's rotate button patch for axes3d
jdh2358 Jul 5, 2010
98ee305
tkagg and fltkagg backends now have blocking show() like all the others
efiring Jul 5, 2010
fdac121
Remove experimental config subpackage using traits
efiring Jul 5, 2010
9ca5db0
set_xlim, set_ylim accept descriptive kwargs: left, right, bottom, top
efiring Jul 5, 2010
6596c4a
support 3d plots in arbitrary axes; thanks Ben Root
jdh2358 Jul 5, 2010
729422c
added whats new for 1.0
jdh2358 Jul 6, 2010
8c7361d
fix some code that breaks python 2.4
jdh2358 Jul 6, 2010
97143d0
add some links and fixes to whats new; bump the version num
jdh2358 Jul 6, 2010
e21b1ca
Improved triplot performance.
ianthomas23 Jul 6, 2010
668a769
tagging for release 1.0
jdh2358 Jul 6, 2010
37fa6fc
update coding guide to point to 1.0 release branch
jdh2358 Jul 6, 2010
421900a
Testing merging
mdboom Jul 6, 2010
c71a80f
Testing merging (removing bogus content)
mdboom Jul 6, 2010
305482d
update download site in site docs
jdh2358 Jul 6, 2010
6a732b1
add gridspec api to toc
jdh2358 Jul 6, 2010
514da05
Backport of r8515: Reset clipping upon exit of draw_markers to avoid …
mdboom Jul 7, 2010
cbc4be0
Fix setting of minor ticklabels. As far as I can tell, the extra call…
dopplershift Jul 9, 2010
5d868e8
Text.draw uses _set_gc_clip to set clip property
leejjoon Jul 13, 2010
f63ee20
Added documentation and examples for new, easier Axes3D use.
WeatherGod Jul 14, 2010
5c927e8
Axes.margin: bugfix--return correct values. Thanks to Georges Schutz.
efiring Jul 14, 2010
2d8a24a
yaxis.set_ticks_position: fix bug with 'none'; thanks to Ben North
efiring Jul 15, 2010
e9f4af6
show for tkagg doesn't block in script called via ipython -pylab.
efiring Jul 15, 2010
e12aba9
Added tri* functions to pyplot docs.
ianthomas23 Jul 16, 2010
53f6a70
backends: factored out most of the show() code into ShowBase class.
efiring Jul 16, 2010
c564baf
fix wrong baseline for multiple line legend
leejjoon Jul 17, 2010
55f6b8a
Return Qt4's default cursor when leaving the canvas
ddale Jul 20, 2010
c47af12
Prevent traceback when window icon can not be loaded in Gtk backend.
mdboom Jul 23, 2010
e934dd0
Fix image clipping to a path and add a test.
mdboom Jul 23, 2010
741046c
Oops in last commit.
mdboom Jul 23, 2010
05d1dd8
rcParams: don't include deprecated keys.
efiring Jul 24, 2010
8e50f72
Fix "graph jumping" issue when rubber-banding a selection in GTK back…
WeatherGod Jul 25, 2010
b065107
[3026430] delete duplicate test file with space in name
efiring Jul 26, 2010
1e45f00
[3032390] subplot: more robust argument handling, consistent with 0.99.3
efiring Jul 26, 2010
19894ac
fix pyplot.subplot2grid to support the projection keyword
leejjoon Jul 27, 2010
641ef73
[3034778] line width arguments don't work in pcolormesh
mdboom Jul 27, 2010
85fa9d8
Fix problems displaying images with zero (logical) width.
mdboom Jul 28, 2010
1424072
[3032853] Hist autorange bug using log and histtype
mdboom Jul 28, 2010
59c25cd
[3031954] polar plot axis labeling problem
mdboom Jul 28, 2010
8f2e1ae
Remove points_to_pixels_snapto -- since it isn't used anywhere and is…
mdboom Jul 29, 2010
baccce3
Fix documentation for set_linestyle() and set_marker() and a few other
WeatherGod Jul 29, 2010
f076d56
Fix inconsistency with the handling of the 'weights' keyword and inpu…
WeatherGod Jul 29, 2010
a62c459
Update baseline image for pcolormesh test
mdboom Jul 30, 2010
ac5e56e
[3036982] imsave: wrong image size
mdboom Jul 30, 2010
5a1a293
make grid method of axislines module compatible with matplotlib
leejjoon Jul 31, 2010
6e85989
Fixed inconsistency with argument handling between 2d and 3d versions…
WeatherGod Aug 1, 2010
387fb64
Fix image placement bug introduced in 8585 (reported by JJ)
mdboom Aug 2, 2010
5aa6281
turn off antialiasing for the solids attribute in axes_grid1.colorbar.
leejjoon Aug 3, 2010
749bbe4
added qt4_editor_options.png
jdh2358 Aug 3, 2010
9b2f674
Remove obsolete rcParam from matplotlibrc.template
mdboom Aug 4, 2010
fae55fe
fix docstring typo
jdh2358 Aug 13, 2010
dd93c38
fix bugs: patch alpha handling, bar color kwarg interpretation
efiring Aug 14, 2010
854c964
fix bug in last commit: patch with no boundary was transparent
efiring Aug 14, 2010
c09876c
patheffects: don't assume rbgFace has no alpha
efiring Aug 16, 2010
cf0f075
Handle NaN's correctly in path analysis routines. Fixes a bug where
mdboom Aug 16, 2010
dced6ba
Add explicit "CLOSEPOLY" codes to unit_rectangle, unit_polygon,
mdboom Aug 16, 2010
5a71209
Missed detail in last commit.
mdboom Aug 16, 2010
8c26932
Fix failing test_simplification:test_hatch test.
mdboom Aug 17, 2010
76c0edc
backend_macosx.py: strip alpha from rgbFace before calling extension …
efiring Aug 17, 2010
23fa33b
backend_macosx: second try: strip alpha only if rgbFace is not None
efiring Aug 17, 2010
d5680c7
Fix bug in regular polygon handling
mdboom Aug 18, 2010
3481e10
Fix positions of r axis labels when rmin != 0.0 in polar plots.
mdboom Aug 18, 2010
e38440f
Fix unit tests for polar rmin changes in last commit.
mdboom Aug 18, 2010
cb5cab4
Axis.set_view_interval: when updating, respect original orientation
efiring Aug 21, 2010
76851eb
fix gridspec bug that location is wrongly calculated for non-square grid
leejjoon Aug 28, 2010
4a1d051
[3054467] fix bug in PatchCollection; restore attribute access to Pat…
efiring Sep 1, 2010
5d04569
PatchCollection: handle linestyles correctly; patch by Thomas Robitaille
efiring Sep 1, 2010
d67a879
doc patch by Christoph Gohlke
efiring Sep 4, 2010
fad0a44
[3024007] Fix ancient bug in hist inherited from numpy, fixed in nump…
efiring Sep 5, 2010
97e9ec1
[3058804] part of a line is not drawn
mdboom Sep 8, 2010
937c7e2
Another pass at fixing simplification.
mdboom Sep 8, 2010
a4953e5
Fix typo in griddata().
dopplershift Sep 11, 2010
6064c67
Handle multple calls to GTKTimer.start() by stopping any existing gtk…
dopplershift Sep 11, 2010
3d13989
Fix semi-transparent Gouraud triangle rendering in SVG backend.
mdboom Sep 14, 2010
b05fc91
Fix mismatched opening/closing group.
mdboom Sep 14, 2010
097697f
change pointer offset from type int to size_t, which caused problems …
WeatherGod Sep 16, 2010
2285724
include Python.h first in extension code; patch by Jason Grout.
efiring Sep 17, 2010
4f6db18
including Python.h and png.h: a second try, special case for linux
efiring Sep 17, 2010
525c39c
Fix clipped text in example.
mdboom Sep 20, 2010
7e5f7d3
If a font file is looked up in the cache, but that font file no longe…
mdboom Sep 21, 2010
b37fefd
Bug #
mdboom Sep 21, 2010
e040267
added Bartosz Telenczuk's artist demo
jdh2358 Sep 22, 2010
2059dfe
added citation faq
jdh2358 Sep 23, 2010
9189753
wrap the mpl citation abstract
jdh2358 Sep 23, 2010
c542e38
fix bezier.get_parallerls to handle parallel input lines
leejjoon Sep 27, 2010
81674c3
Clarify docstrings for autoscale_view and relim.
efiring Sep 27, 2010
a7704ad
docs: in event_handling, note that weak references to callbacks are u…
efiring Oct 3, 2010
17a8af4
errorbar bugfix: plot everything regardless of the Axes hold state
efiring Oct 3, 2010
25589d9
bugfix: applied patch by Stan West to fix error in colormap reversal
efiring Oct 3, 2010
bdbea9d
autoscale_view: respect tight kwarg even if only images are present.
efiring Oct 6, 2010
2dfa5e4
fix bbox_to_anchor for draggable legend
leejjoon Oct 8, 2010
b6948b1
[3082058] build _png.so on aix
mdboom Oct 8, 2010
e7d6177
fixed mpl finance buglets identified by Keith Goodman
jdh2358 Oct 12, 2010
73ca17b
tweak volume docstring for yahoo finance
jdh2358 Oct 12, 2010
0dcb21f
Safer handling of the minimum positive value in log locators.
mdboom Oct 12, 2010
76d1396
Fix is_decade()
mdboom Oct 13, 2010
aaabc2a
added chipy talk video and some notes about transforms
jdh2358 Oct 15, 2010
dfc0660
Make is_decade safe for non-finite values.
mdboom Oct 19, 2010
0c2620c
Fix LogFormatter, as reported by Gökhan Sever
mdboom Oct 19, 2010
feb143a
[3092255] Fix the direction of scroll event in Tk backend to match ot…
mdboom Oct 22, 2010
f9a68c1
Fix problems with funnily encoded fonts in PS backend.
mdboom Oct 22, 2010
528732b
Update pcolormesh test reference image
mdboom Oct 27, 2010
e009bd2
Flush the clipboard after pasting to it so that the data remains afte…
mdboom Nov 1, 2010
c527ef8
added recipes
jdh2358 Nov 4, 2010
312096c
some updates to recipes
jdh2358 Nov 4, 2010
39c4daf
fix demo_text_path.py
leejjoon Nov 5, 2010
567f97a
Fix 'unexpected end of path' errors encountered with this file in new…
mdboom Nov 5, 2010
9027a79
Allow bypassing the download mechanism in get_sample_data
jkseppan Nov 7, 2010
30ac5e5
Fix bug where using zoom tool on polar plot prevents it from panning …
mdboom Nov 8, 2010
84e0589
added context and nofigs options to support context between plot dire…
jdh2358 Nov 9, 2010
e3cdce8
fix a bug in context so plot directive will be forced to run (but not…
jdh2358 Nov 9, 2010
f4aeb5b
fix incorrect end position of FancyArrowPatch
leejjoon Nov 10, 2010
c4d1392
Fix Agg complexity exception so it is thrown multiple times correctly.
mdboom Nov 10, 2010
94abf2f
Clip all objects in Agg to the figure
mdboom Nov 12, 2010
fbda603
Fixed a bug in axis3d.py which caused axis labels to not be centered …
WeatherGod Nov 12, 2010
582b46f
Fix indentation
mdboom Nov 12, 2010
6370a6a
replace ax.transData in contour.py with proper get_transform call
leejjoon Nov 15, 2010
ba8c65d
Collection.update_from copies attributes of scalarmappable
leejjoon Nov 15, 2010
8de9241
Fixed a mistake with the Hammer projection in the geo module.
WeatherGod Nov 22, 2010
cc94c37
Fix memory leak in PyCXX.
mdboom Nov 30, 2010
9713a9a
[3109913] importing matplotlib changes string.letters
mdboom Nov 30, 2010
a8e2aa7
Fix examples.directory documentation
jkseppan Dec 5, 2010
d7a06da
Remove unicode from docstrings, since it doesn't play well with __bui…
mdboom Dec 6, 2010
c9a9fe2
[3123736] tex processor crashes when fed a space
mdboom Dec 9, 2010
632220d
Fixed error message in Agg backend.
mdboom Dec 9, 2010
6de9019
Handle Unicode characters in Postscript Type 42 fonts by creating hyb…
mdboom Dec 10, 2010
4b27deb
Fix polygon closing on triangle markers (Bug #3102034)
mdboom Dec 10, 2010
d3a4cea
Improve indentation in ttconv.
mdboom Dec 10, 2010
940e515
added ipython directive
jdh2358 Dec 13, 2010
1044127
Fixed typo in mplot3d tutorial
WeatherGod Dec 13, 2010
795724b
NonUniformImage only supports nearest and bilinear interpolation, so …
mdboom Dec 14, 2010
95b98b5
Fix memory leak in text layout handling.
mdboom Dec 14, 2010
9000401
[3137172] Fix cyclical import problem.
mdboom Dec 14, 2010
d4583de
Fix Unicode encoding error saving SVGs with Unicode characters on som…
mdboom Dec 17, 2010
1c12e35
[3138764] Small speed fix (submitted by notmuchtotell)
mdboom Dec 21, 2010
d8ee424
[3053296] backend_qt4 Toolbar2QT string format fix
mdboom Dec 21, 2010
f682729
revocer the negative coordinates support of annotation
leejjoon Dec 29, 2010
4c43a08
bumped version number to 1.0.1rc
jdh2358 Jan 2, 2011
cc62a7d
update pytz to 2010o
jdh2358 Jan 3, 2011
c2b3c1d
apply patch by Paul Ivanov to move twinx second axis offset to the RHS
efiring Jan 4, 2011
2f86ae7
Bugfix: invert_xaxis and invert_yaxis now notify observers. Closes 31…
efiring Jan 4, 2011
ea7344e
Finance: change volume to float; close 3108059
efiring Jan 4, 2011
42b8388
Replace MacOS.WMAvailable, as the MacOS module is not available with …
mdehoon Jan 5, 2011
f954a51
fix rc file defaults issue for docs; python 2.4 compliance for formla…
jdh2358 Jan 5, 2011
ea2292e
Applying a similar fix to r8873 which seemed to only have been applie…
WeatherGod Jan 5, 2011
79537dc
remove unused params from doc rc; add comment on examples.download pa…
jdh2358 Jan 5, 2011
85217d6
bumpt the rc version num
jdh2358 Jan 5, 2011
15fa214
fix the plot directive
jdh2358 Jan 6, 2011
a9f3f3a
tag 1.0.1 for release
jdh2358 Jan 6, 2011
d21caa5
support relative paths in examples.directory
jdh2358 Jan 6, 2011
d8c134c
Fixing a bug. Due to a race condition, the view of a closing window c…
mdehoon Jan 8, 2011
7c9dd2c
Fix eps distillation bbox bug; closes 3032385
efiring Jan 12, 2011
e335d12
Backport 8657 from trunk; patch by C. Gohlke; closes 3151544
efiring Jan 12, 2011
63c6868
Add missing show() to example; patch by C. Gohlke; closes 3151545
efiring Jan 12, 2011
75f6f96
Apply Laurent Dufreshou's bug fix to animiation_blit_qt4.py. Closes 2…
efiring Jan 13, 2011
c02a3ae
[3154456] confirm file overwrite (gtk)
mdboom Jan 13, 2011
c5ccff9
Fix doc build with recent versions of Sphinx (reported by Sandro Tosi)
mdboom Jan 14, 2011
5114b14
Change pcolor and contourf default antialiasing to False; closes 3151…
efiring Jan 16, 2011
5cee379
Increase tolerance in pcolormesh test.
mdboom Jan 18, 2011
bfe6032
Fixes colors normalization with 'under' colors in LinearSegmentedColo…
WeatherGod Jan 21, 2011
92814db
Fixing problem where reversed colormaps of LinearSegmentedColormaps w…
WeatherGod Jan 22, 2011
9e89b76
[3167200] Use from PIL import Image
mdboom Feb 1, 2011
8ce6b67
bug: xlim, ylim with no arguments should not affect autoscaling
efiring Feb 6, 2011
3922443
Quick workaround for dviread bug #3175113
jkseppan Feb 7, 2011
1389499
Merge branch 'v0.99.x' into v1.0.x
jkseppan Feb 20, 2011
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
415 changes: 400 additions & 15 deletions CHANGELOG

Large diffs are not rendered by default.

99 changes: 4 additions & 95 deletions CXX/Config.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,101 +34,10 @@
// DAMAGE.
//
//-----------------------------------------------------------------------------
#include "CXX/WrapPython.h"

#ifndef __PyCXX_config_hh__
#define __PyCXX_config_hh__

//
// Microsoft VC++ 6.0 has no traits
//
#if defined( _MSC_VER )

# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1

#elif defined( __GNUC__ )
# if __GNUC__ >= 3
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
# else
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 0
#endif

//
// Assume all other compilers do
//
#else

// Macros to deal with deficiencies in compilers
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
#endif

#if STANDARD_LIBRARY_HAS_ITERATOR_TRAITS
# define random_access_iterator_parent(itemtype) std::iterator<std::random_access_iterator_tag,itemtype,int>
#if PY_MAJOR_VERSION == 2
#include "CXX/Python2/Config.hxx"
#else
# define random_access_iterator_parent(itemtype) std::random_access_iterator<itemtype, int>
#include "CXX/Python3/Config.hxx"
#endif

//
// Which C++ standard is in use?
//
#if defined( _MSC_VER )
# if _MSC_VER <= 1200
// MSVC++ 6.0
# define PYCXX_ISO_CPP_LIB 0
# define STR_STREAM <strstream>
# define TEMPLATE_TYPENAME class
# else
# define PYCXX_ISO_CPP_LIB 1
# define STR_STREAM <sstream>
# define TEMPLATE_TYPENAME typename
# endif
#elif defined( __GNUC__ )
# if __GNUC__ >= 3
# define PYCXX_ISO_CPP_LIB 1
# define STR_STREAM <sstream>
# define TEMPLATE_TYPENAME typename
# else
# define PYCXX_ISO_CPP_LIB 0
# define STR_STREAM <strstream>
# define TEMPLATE_TYPENAME class
# endif
#endif

#if PYCXX_ISO_CPP_LIB
# define STR_STREAM <sstream>
# define OSTRSTREAM ostringstream
# define EXPLICIT_TYPENAME typename
# define EXPLICIT_CLASS class
# define TEMPLATE_TYPENAME typename
#else
# define STR_STREAM <strstream>
# define OSTRSTREAM ostrstream
# define EXPLICIT_TYPENAME
# define EXPLICIT_CLASS
# define TEMPLATE_TYPENAME class
#endif

// before 2.5 Py_ssize_t was missing
#ifndef PY_MAJOR_VERSION
#error not defined PY_MAJOR_VERSION
#endif
#if PY_MAJOR_VERSION < 2 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5)
typedef int Py_ssize_t;
#endif

// hash_map container usage selection
// 1) if PYCXX_USING_STD_MAP is defined PyCXX will be using std::map<> container
// implementation only.
// 2) if compilers are used other than MS Visual Studio (7.1+) or GCC 3.x
// STANDARD_LIBRARY_HAS_HASH_MAP must be defined before compilation to
// make PyCXX using hash_map container.
#if !defined( PYCXX_USING_STD_MAP )
#if defined( _MSC_VER ) || defined( __INTEL_COMPILER ) || defined ( __ICC ) || (defined( __GNUC__ ) && ( __GNUC__ > 3 ))
# define PYCXX_USING_HASH_MAP
#else
# if defined( STANDARD_LIBRARY_HAS_HASH_MAP ) && !defined( PYCXX_USING_HASH_MAP )
# define PYCXX_USING_HASH_MAP
# endif
#endif
#endif

#endif // __PyCXX_config_hh__
214 changes: 4 additions & 210 deletions CXX/Exception.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,216 +34,10 @@
// DAMAGE.
//
//-----------------------------------------------------------------------------

#ifndef __CXX_Exception_h
#define __CXX_Exception_h

#include "CXX/WrapPython.h"
#include "CXX/Version.hxx"
#include "CXX/Config.hxx"
#include "CXX/IndirectPythonInterface.hxx"

#include <string>
#include <iostream>

// This mimics the Python structure, in order to minimize confusion
namespace Py
{
class ExtensionExceptionType;

class Object;

class Exception
{
public:
Exception( ExtensionExceptionType &exception, const std::string& reason );
Exception( ExtensionExceptionType &exception, Object &reason );

explicit Exception ()
{}

Exception (const std::string& reason)
{
PyErr_SetString (Py::_Exc_RuntimeError(), reason.c_str());
}

Exception (PyObject* exception, const std::string& reason)
{
PyErr_SetString (exception, reason.c_str());
}

Exception (PyObject* exception, Object &reason);

void clear() // clear the error
// technically but not philosophically const
{
PyErr_Clear();
}
};


// Abstract
class StandardError: public Exception
{
protected:
explicit StandardError()
{}
};

class LookupError: public StandardError
{
protected:
explicit LookupError()
{}
};

class ArithmeticError: public StandardError
{
protected:
explicit ArithmeticError()
{}
};

class EnvironmentError: public StandardError
{
protected:
explicit EnvironmentError()
{}
};

// Concrete

class TypeError: public StandardError
{
public:
TypeError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_TypeError(),reason.c_str());
}
};

class IndexError: public LookupError
{
public:
IndexError (const std::string& reason)
: LookupError()
{
PyErr_SetString (Py::_Exc_IndexError(), reason.c_str());
}
};

class AttributeError: public StandardError
{
public:
AttributeError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_AttributeError(), reason.c_str());
}
};

class NameError: public StandardError
{
public:
NameError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_NameError(), reason.c_str());
}
};

class RuntimeError: public StandardError
{
public:
RuntimeError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_RuntimeError(), reason.c_str());
}
};

class SystemError: public StandardError
{
public:
SystemError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_SystemError(),reason.c_str());
}
};

class KeyError: public LookupError
{
public:
KeyError (const std::string& reason)
: LookupError()
{
PyErr_SetString (Py::_Exc_KeyError(),reason.c_str());
}
};


class ValueError: public StandardError
{
public:
ValueError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_ValueError(), reason.c_str());
}
};

class OverflowError: public ArithmeticError
{
public:
OverflowError (const std::string& reason)
: ArithmeticError()
{
PyErr_SetString (Py::_Exc_OverflowError(), reason.c_str());
}
};

class ZeroDivisionError: public ArithmeticError
{
public:
ZeroDivisionError (const std::string& reason)
: ArithmeticError()
{
PyErr_SetString (Py::_Exc_ZeroDivisionError(), reason.c_str());
}
};

class FloatingPointError: public ArithmeticError
{
public:
FloatingPointError (const std::string& reason)
: ArithmeticError()
{
PyErr_SetString (Py::_Exc_FloatingPointError(), reason.c_str());
}
};

class MemoryError: public StandardError
{
public:
MemoryError (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_MemoryError(), reason.c_str());
}
};

class SystemExit: public StandardError
{
public:
SystemExit (const std::string& reason)
: StandardError()
{
PyErr_SetString (Py::_Exc_SystemExit(),reason.c_str());
}
};

}// Py

#if PY_MAJOR_VERSION == 2
#include "CXX/Python2/Exception.hxx"
#else
#include "CXX/Python3/Exception.hxx"
#endif
Loading