page_title: SymPy
section_title: Plotting
hierarchical_section_title: SymPy / Usage examples / Plotting
caption_attribution_description: English: Simple plot created with SymPy to illustrate plotting. (The filename "screenshot" was chosen before going through the details of wikipedia uploading; it is rather the output of the program than a screenshot.)
context_page_description: SymPy is an open-source Python library for symbolic computation. It provides computer algebra capabilities either as a standalone application, as a library to other applications, or live on the web as SymPy Live or SymPy Gamma. SymPy is simple to install and to inspect because it is written entirely in Python with few dependencies. This ease of access combined with a simple and extensible code base in a well known language make SymPy a computer algebra system with a relatively low barrier to entry.
  SymPy includes features ranging from basic symbolic arithmetic to calculus, algebra, discrete mathematics and quantum physics. It is capable of formatting the result of the computations as LaTeX code.
  SymPy is free software and is licensed under New BSD License. The lead developers are Ondřej Čertík and Aaron Meurer. It was started in 2005 by Ondřej Čertík.
context_section_description: >>> from sympy import symbols, cos>>> from sympy.plotting import plot3d>>> x, y = symbols('x y')>>> plot3d(cos(x*3)*cos(y*5)-y, (x, -1, 1), (y, -1, 1))<sympy.plotting.plot.Plot object at 0x3b6d0d0>
caption: Output of the plotting example
exif: {}