from sympy.plotting import plot, plot_parametric, plot3d, plot3d_parametric_line, plot3d_parametric_surface p = plot(x) p # the Plot object p[0] # one of the data series objects p[0].label # an option of the data series p.legend # a global option of the plot p.legend = True p.show() p1 = plot_parametric(x*sin(x),x*cos(x), show=False) p1.extend(p) # Plot objects are just like lists. p1.show() p1.legend = True p1.show() p1[0].line_color='r' p1[1].line_color='b' # a constant color p1.show() p1[0].line_color = lambda a : a # color dependent on the parameter p1.show() p1.title = 'Big title' p1.xlabel = 'the x axis' p1[1].label = 'straight line' p1.show() p1.aspect_ratio p1.aspect_ratio = (1,1) p1.xlim = (-15,20) p1.show() p1._backend.ax.get_xlim() p = plot(x) p p.extend(plot(x+1, show=False)) p.show() p p.append(plot(x+3, x**2, show=False)[1]) p.show() p help(plot) plot(sin(x**2)) # plots with adaptive sampling and default range of (-10, 10) plot(sin(x**2), depth=7) #specifying the depth of recursion. plot(sin(x**2), adaptive=False, nb_of_points=500) help(plot_parametric) plot_parametric(cos(x), sin(x)) plot_parametric((cos(x), sin(x)), (x, cos(x))) p = plot(sin(x), show=False) p.extend(plot_parametric(cos(x), sin(x), show=False)) p.show() help(plot3d) plot3d(x*y) plot3d(x*y, nb_of_points_x=100, nb_of_points_y=50) help(plot3d_parametric_line) plot3d_parametric_line(cos(x), sin(x), x) help(plot3d_parametric_surface) plot3d_parametric_surface(cos(x + y), sin(x - y), x - y) plot(sqrt(x), (x, -5, 5)) pt = plot(sin(x),show=False) pt.backend = plot_backends['text'] pt.show()