![]() Note that by setting line_color, it would be applied simultaneously String (for example, \(line_color="0.5"\)) to specify grayscale colors.Īlternatively, We can specify a function returning a singleįloat value: this will be used to apply a color-loop (for example, Matplotlib string colors are acceptable (“red”, “r”, “cyan”, “c”, …).Īlternatively, we can use a float number \(0 < color < 1\) wrapped in a ![]() Specifies the color for the plot, which depends on the backend beingįor example, if MatplotlibBackend is being used, then line_color string, or float, or function, optional.Parametric3DLineSeries support the following: ListSeries, LineOver1DRangeSeries, Parametric2DLineSeries, Some data series support additional aesthetics or options: The per data series options and aesthetics are: ![]() Size : optional tuple of two floats, (width, height) default: None The arguments for the constructor Plot must be subclasses of BaseSeries.Īny global option can be specified as a keyword argument.Īxis_center : tuple of two floats or or a subclass of BaseBackend The parametric plots to plot in polar, spherical and cylindrical Only cartesian coordinates are supported for the moment, but you can use If the arity does not permit calculation over parameters the calculation is It the aesthetic is calculated over parameters and not over coordinates. If the plot is parametric and the arity of the aesthetic function permits Their implementation depends on the backend so they may not work in some a function of three variables (only in nonparametric 3D plots) a function of two variables (the first and second coordinate or a function of one variable (the first coordinate or parameter) The difference between options and aesthetics is that an aesthetic can beĪ function of the coordinates (or parameters in a parametric plot). Per-data series options (eg name) and aesthetics (eg. Global options thatĬoncern the figure as a whole (eg title, xlabel, scale, etc) and The customization of the figure is on two levels. Instances of classes not imported by from sympy import *. Lists of points, etc (all subclasses of BaseSeries)). Plot has a private attribute _series thatĬontains all data series to be plotted (expressions for lines or surfaces, ![]() The figure can contain an arbitrary number of plots of SymPy expressions, This class permits the plotting of SymPy expressions using numerousīackends (matplotlib, textplot, the old pyglet module for sympy, Google The central class of the plotting module.įor interactive work the function plot is better suited. Plot ( * args, title = None, xlabel = None, ylabel = None, zlabel = None, aspect_ratio = 'auto', xlim = None, ylim = None, axis_center = 'auto', axis = True, xscale = 'linear', yscale = 'linear', legend = False, autoscale = True, margin = 0, annotations = None, markers = None, rectangles = None, fill = None, backend = 'default', size = None, ** kwargs ) ¶ Plot any plot by passing the corresponding Series class to Plot asĪrgument. The above functions are only for convenience and ease of use. Plot3d_parametric_surface: Plots 3D parametric surface plots. Plot3d_parametric_line: Plots 3D line plots, defined by a parameter. Plot3d: Plots 3D plots of functions in two variables. Plot_implicit: Plots 2D implicit and region plots. Plot_parametric: Plots 2D parametric plots. The plotting module has the following functions: It isĪlso possible to plot 2-dimensional plots using a TextBackend if you don’t Presently the plots are rendered using matplotlib as a backend. The plotting module allows you to make 2-dimensional and 3-dimensional plots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |