File:2 example.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 736 × 496 pixels, file size: 101 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

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[edit]

Created with Matplotlib-logo 
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[edit]

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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:08, 8 June 2013Thumbnail for version as of 18:08, 8 June 2013736 × 496 (101 KB)Azaghal of Belegost (talk | contribs)User created page with UploadWizard

The following page uses this file:

Metadata