Timing : Nokia N9 (45s/44s), N900 (92s/88s)ģD surface in cartesian coordinates of 2 variables, z = f(x,y), it is by default z colored : In : mpmath.cplot(mpmath.zeta, re=, im=, file="zeta.png") Timing : Nokia N9 (4.8s/2.5s), N900 (8.9s/3.6s)ĢD Density plot of complex function of z = re + j*im, here the zeta function : Time is measured on Nokia N9 1 GHz (with MatPlotLib 1.2.0 & NumPy 1.7.0) and Nokia N900 600 Mhz (with MatPlotLib 1.0.0 & NumPy 1.4.0), both using SymPy 0.7.2.ĢD Plot of a function of 1 variable, y = f(x), a dumped harmonic oscillator : The 1st time is measured (with "%time") after loading "isympy", the 2nd time is for repeating plottings. ![]() on MeeGo Harmattan, use MatPlotLib 1.2.0 so all the features cited here will work. on Maemo 5, the surface plots have some faulty colors, due MatPlotLib v1.00 being old on Maemo 5 and MeeGo Harmattan, mpmath plot functions without the option "file=" opens the interactive backend of MatPlotLib on your Nokia N900/N9/N950 Falling back to Bitstream Vera Sans"Īnd some symbols ('-' in axis numbers, etc) are not shown. "/usr/lib/python2.5/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family not found. on Maemo 5, there is the warning message : "import sympy.mpmath" is used instead of "from sympy.mpmath import *" to avoid conflict with the new "plot()" function (from plotting module) mpmath plotting has no 2D parametric plots and no options to specify axis names, title name, plot color, etc Observations about mpmath plots and MatPlotLib : Here are some examples of using the mpmath plotting functions, repeating some plots from post #11 (where another option to make plots in SymPy, "Plot()"/PyGlet, was used). The 2nd option to plot using SymPy 0.7.1/0.7.3, and the 3rd option to plot inside SymPy 0.7.2 is the use of mpmath plotting functions, which depend on MatPlotLib, so only available on Maemo 5 and MeeGo Harmattan.
0 Comments
Leave a Reply. |