File:2 example.svg

Uploaded by Azaghal of Belegost
Upload date 2013-06-08T18:08:43Z
MIME type image/svg+xml
Dimensions 736 × 496 px
File size 101.4 KB

Summary

Description
English: Vectorized plot of several cubic functions.
Date
Source 2_example.JPG
Author
Other versions
This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: vectorized. The original can be viewed here: 2 example.JPG. Modifications made by Azaghal of Belegost.

Source code

 This W3C-invalid plot was created with Matplotlib.
Source Code in python:
import matplotlib.pyplot as plt
x_s = [ t/10 - 1 for t in range(400) ]
y_1 = [ (x - 1)**3 + 1 for x in x_s ]
y_2 = [ (x - 2)**3 + 2 for x in x_s ]
y_3 = [ (x - 1)**3 for x in x_s ]
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x_s, y_1, label='Equation 1: $y=(x-1)^3+1$')
ax.plot(x_s, y_2, label='Equation 2: $y=(x-2)^3+2$')
ax.plot(x_s, y_3, label='Equation 3: $y=(x-1)^3$')
ax.legend(loc=2)
ax.grid()
plt.ylim(-1, 3)
plt.xlim(-1, 3)
ax.set_aspect(0.67)
plt.show()

Licensing

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

8 June 2013

image/svg+xml

9a62b4918ec83f69076a7405550ec76355d23cbf

103,868 byte

496 pixel

736 pixel

Category:CC-BY-SA-3.0 Category:Cubic functions Category:Images with Python source code Category:Invalid SVG created with Matplotlib Category:SVG retouched pictures from raster Category:SVG x-y functions