29 Commits

Author SHA1 Message Date
alexfyp 0abd5de3f0 Fix cplot points rounding (#379) 2026-08-11 15:10:35 +02:00
Apoorv Darshan 86978167e1 Close leftover figure in plot/cplot/splot on error (#1123)
Fixes #1007
2026-07-10 04:57:23 +03:00
Sergey B Kirpichev 73c2cda472 Pass additional kwargs to matplotlib functons, e.g. imshow()
Closes #203
2024-03-26 05:16:06 +03:00
Sergey B Kirpichev 3f95fa422b Update splot() for recent matplotlib
Closes #541
Closes #746
2024-01-19 10:49:12 +03:00
Sergey B Kirpichev 5ec9d07dee Reorganize imports in doctests (no star imports) 2023-05-09 07:27:20 +03:00
Fangchen Li dfc289289d Drop py2 support (#629)
* remove xrange compat shim
* remove str compat shim
* remove exec compat shim
* remove object from class defination
* remove misc workarounds for python versions <3.5
* remove __future__ imports
* update readme
* Update setup.cfg

Closes #594

Co-authored-by: Fredrik Johansson <fredrik.johansson@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Colin B. Macdonald <cbm@m.fsf.org>
2023-03-30 04:50:18 +03:00
Fredrik Johansson 4b6485d6f5 add an alternative color scheme 2016-03-12 18:24:14 +01:00
Ondřej Čertík 89c636f5dc Normalize line endings 2014-04-14 12:49:26 -06:00
endolith c0a71da1e6 Verbose prints a tuple instead of a string
Should be "5 of 10" instead of (5, 'of', 10)
2013-03-19 18:56:29 -03:00
Fredrik Johansson 296892154f fix remaining py3 compatibility issues 2011-01-08 23:52:03 +00:00
Fredrik Johansson 5c8e4aa5b4 import xrange from libmp.backend to work in python 3 2011-01-08 22:54:03 +00:00
Fredrik Johansson d6a6afcdbd python 3-compatible print statements (not fully verified yet) 2011-01-08 22:38:25 +00:00
Fredrik Johansson b8651c00f1 switch to using explicit relative imports (Python 2.4 compatibility henceforth abandoned) 2011-01-08 22:15:29 +00:00
Fredrik Johansson 27eab13de6 convert line endings in trunk to unix format; rebuild docs 2010-07-28 20:09:06 +00:00
Fredrik Johansson 6affe3c3d8 dummy commit 2010-06-21 09:32:01 +00:00
Fredrik Johansson 221b816667 fix plot(lambda x: mpc(0)) 2010-06-14 19:47:29 +00:00
Fredrik Johansson 75aeb77f55 fix cplot with non-float/int interval specification 2010-06-14 19:42:53 +00:00
Fredrik Johansson f575ff4e3c some docstring touchups 2010-03-25 09:09:36 +00:00
Fredrik Johansson 578da34327 fix plot with mpmath numbers in the interval specification 2010-03-23 15:34:12 +00:00
Fredrik Johansson 43bd32bf60 include NoConvergence among exceptions suppressed while plotting 2010-02-06 19:13:29 +00:00
Fredrik Johansson 09a3e1cd21 consistent line endings 2010-02-04 14:43:01 +00:00
Fredrik Johansson f1437199e5 add splot for 3D surface plots; make it possible to use plot functions with custom axes (contributed by Jorn Baayen) 2010-01-12 13:06:31 +00:00
Fredrik Johansson b2322d8d1c Merge new contexts code from the mp4 branch.
* All the high level modules now use context instances and methods thereof instead of the global mp object and global functions
* Implemented a fixed-precision (using float/complex) context, with a default fp instance. It mostly works but some necessary methods are not yet implemented or broken.
* Most implementation details of functions.py have been removed and moved to helper methods in mptypes.py
* This patch also adds the new hypergeometric series code from the mp4 branch, and a few other changes to special functions such as layout of the elliptic functions code (djtheta removed; added a derivative paramter to jtheta instead)
2009-12-19 00:28:17 +00:00
Fredrik Johansson 622bd9bf89 documentation update and rebuild (mainly edited the basics section; adding docs for misc utility functions) 2009-01-22 18:44:45 +00:00
Fredrik Johansson 441d5c0968 have float(huge) -> inf and float(1/huge) -> 0 instead of overflowing (correct or not, i tend to find this behavior more convenient). also work around a matplotlib limitation causing very large but not quite infinite floats (gradual overflow?) to raise an error 2008-11-15 11:50:01 +00:00
Fredrik Johansson 48def56944 plotting: some enhancements for image saving 2008-10-07 20:57:59 +00:00
Fredrik Johansson 7f3d09fc57 slightly less than full color saturation in cplot is more pleasing to the eye, i think 2008-10-05 16:41:24 +00:00
Fredrik Johansson 29eedfbc3e make sure cplot function args are mpc 2008-10-04 22:58:00 +00:00
Fredrik Johansson 8cd571f28e implemented complex plotting 2008-10-04 22:21:46 +00:00