Scientific calculation and drawing--python solution

Source: Internet
Author: User
Tags documentation
When it comes to scientific calculations, people may think about Matlab,maple, and others may think of Open-source software, such as Scilab,octave,r,gnuplot and so on.
These software all have their own characteristics, sometimes may only use its one point function to install and the system learns it, consumes the time energy very much.
Unification is everyone's long-cherished wish, and the unified grammar allows us to learn its grammar without using a tool. The advent of Python's various libraries has fulfilled our aspirations.
Python's library is huge enough to meet all your application requirements (a bit exaggerated). All kinds of libraries are tightly knit around python, weaving a beautiful tomorrow together.
Scientific research can not be separated from science calculation, writing paper is inseparable from data visualization. Here's a list of the Python libraries I've chosen to address these two issues.
python--Elegant programming language
Matplotlib--sourceforge Best project, Python's 2D drawing library
Mayavi2--python's 3D Drawing library
SymPy---python symbol computing Library
NumPy and scipy--python numerical calculation library
Brief introduction
1, NumPy and scipy:numpy provide matrices and vector classes, while scipy relies on NumPy, which encapsulates algorithms for scientific computation. Simply put, NumPy provides an object, SCIPY provides an algorithm.
2, Matplotlib: The drawing function can basically compare with MATLAB, its characteristic is can embed the mathematical formula similar to the Tex language, this can easily add the mathematical formula to the diagram. This feature
Very convenient, I previously wanted to add superscript to the title of the graph and not, now the problem is well resolved. Matlab drawing is really convenient, but I choose matplotlib another important reason is that matplotlib picture is very
Beautiful, may be my matlab is too bad, but the same is the default drawing parameters, Matplotlib draw the diagram looks like a lot more comfortable, the curve is very smooth, no sawtooth. It's very rich in documentation and
Its demo diagram is very rich. If you want to draw two-dimensional graphics, go to it online to find a beautiful picture, and then copy the code, slightly modified, you can draw a very professional two-dimensional diagram.
3, Mayavi2: The three-dimensional drawing is very good-looking, I first saw it to draw the vector field map, that kind of surprise can not describe the shape.
4, SymPy: Symbol calculation library, function name similar maple.
The libraries mentioned above are very rich in documentation, so you just need to look at the documentation carefully. They have a good document structure, easy to find, and cramming can be significant, after all, it's OK to finish the task.
Installation
One library to install is time-consuming and laborious, and someone has already integrated them together, such as Python (x,y). The object of Python (X,y) is the scientist, whose developer developed a MATLAB-like environment,
It's very convenient to use, the most important thing is that it's free. There are downloads online, google it.
I also found a Python protable software that built a lot of libraries, probably mayavi2 too large to contain it, but it was enough. You can extract it into a USB drive and plug it into a machine that doesn't have Python installed so you can run Python and draw a two-dimensional diagram ... Software is about 60 m, download online, choose 2.5 version of the download.
Matplotlib Chart:




MAYAVI2 Chart:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.