File:DampedCosine.svg

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

Original file(SVG file, nominally 576 × 432 pixels, file size: 17 KB)

Captions

Captions

Exponentially decaying cosine function.

Summary[edit]

Description
English: Exponentially decaying cosine function
Español: Función coseno que decae exponencialmente
Date
Source Own work
Author Nicoguaro
SVG development
InfoField
 
The source code of this SVG is invalid due to an error.
 
This W3C-invalid plot was created with Matplotlib.
 
The file size of this SVG plot may be irrationally large because its text has been converted to paths inhibiting translations.
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt


plt.rcParams["mathtext.fontset"] = "cm"

t = np.linspace(0, 5, 500)
y = np.exp(-t)*np.cos(2*np.pi*t)
plt.plot(t, y)


plt.xlabel("$t$", fontsize=14, loc="right")
plt.ylabel("$y(t)$", fontsize=14)
plt.xlim(0, 5.5)
plt.xticks([1, 2, 3, 4, 5])
plt.yticks([-1, -0.5, 0, 0.5, 1])

ax = plt.gca()
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')
ax.xaxis.set_ticks_position('bottom')
ax.spines['bottom'].set_position(('data',0))
ax.yaxis.set_ticks_position('left')
ax.spines['left'].set_position(('data',0))
plt.savefig("DampedCosine.svg")
plt.show()

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International 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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current00:21, 26 February 2022Thumbnail for version as of 00:21, 26 February 2022576 × 432 (17 KB)Nicoguaro (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata