Jump to content

File:Analytic.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 642 × 400 pixels, file size: 31 KB)

Summary

Description A signal and the magnitude of its analytic signal, to demonstrate the envelope effect. I made it using Octave (that uses Gnuplot internally to output in SVG).
Date
Source Image:Analytic.png
Author original work by User:Omegatron, adapted to SVG by Alessio Damato
Other versions
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Python source code
from numpy import arange, sin, pi
from scipy.signal import hilbert
import matplotlib.pyplot as plt
plt.rc('svg', fonttype='none')

dt = 1e-3
t = arange(dt, 3, dt)
y1 = -(1.2 / t) - t + 3
y1[y1 < 0] = 0
y2 = sin(2 * 3 * pi * t)
y3 = y1 * y2
y4 = abs(hilbert(y3))

fig, ax = plt.subplots(1,1,figsize=(8,5))
ax.plot(t, y3, color='blue')
ax.plot(t, y4, color='red')
ax.grid(True)
ax.minorticks_on()
ax.set_xlim([0,3])
ax.set_xlabel(r'$t$')
ax.set_ylabel(r'$y$')
fig.savefig('analytic.svg', bbox_inches='tight')

Data

Matlab source code
t=[0:.0001:3]; 
y1=-(1.2./t)-t+3;  
y1(y1<0)=0;
y2=sin(2*3*pi*t);
y3=y1.*y2;
hil=abs(hilbert(y3));

gset terminal svg enhanced fname "Times" fsize 20
gset output "analytic.svg"                                          
gset nokey                                                         
gset yrange [-1:1]                                                 

plot(t,y3,"3",t,hil,"1");

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
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.
This licensing tag was added to this file as part of the GFDL licensing update.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic 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.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

February 2007

image/svg+xml

18710c4c15480d6e6c2b181049ce23033997729a

31,281 byte

400 pixel

642 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current20:34, 24 April 2018Thumbnail for version as of 20:34, 24 April 2018642 × 400 (31 KB)Krishnavedalareplotted using matplotlib
17:02, 4 June 2011Thumbnail for version as of 17:02, 4 June 2011373 × 354 (37 KB)Krishnavedalasmoother version created in python.
22:11, 25 February 2007Thumbnail for version as of 22:11, 25 February 2007600 × 480 (38 KB)Alejo2083{{Information |Description=A signal and the magnitude of its analytic signal, to demonstrate the envelope effect. I made it using Octave (that uses Gnuplot internally to output in SVG). Here is the code: <pre> t=[0:.0001:3]; y1=-(1.2./t)-t+3; y1(y1<0)=

The following 3 pages use this file:

Global file usage

The following other wikis use this file:

Metadata