How to plot ricker curve using SciPy - Python? Last Updated : 03 Jan, 2021 Comments Improve Suggest changes Like Article Like Report Prerequisites: Mathplotlib, NumPy A Ricker wavelet is a wave-like oscillation with an amplitude that begins at 0, increases, and then decreases back to 0. A Ricker wavelet, also known as the “Mexican hat wavelet”.In this article, we will plot the ricker curve that makes them useful for signal processing. It is the negative normalized second derivative of a Gaussian function. Syntax: scipy.signal.ricker(points, a) Parameter: points: A number of points in vector. Will be centered around 0.a: Width parameter of the wavelet. Returns: An array of length points in the shape of a ricker curve. Approach: Import required modules.Create an array to plot the shape of a ricker curve.Move an axis at the center.Show Graph. Example 1: Plotting Ricker curve. Python3 from scipy import signal import matplotlib.pyplot as plt point = 100 hat = signal.ricker(point, 4) fig = plt.figure(figsize = (8, 8)) ax = fig.add_subplot(1, 1, 1) # Move left y-axis and bottim x-axis to centre, # passing through (0,0) ax.spines['left'].set_position('center') ax.spines['bottom'].set_position('center') # Eliminate upper and right axes ax.spines['right'].set_color('none') ax.spines['top'].set_color('none') plt.grid(True) plt.plot(hat) plt.show() Output: Example 2: Plotting Inverse Ricker curve. Python3 from scipy import signal import matplotlib.pyplot as plt point = 100 hat = -(signal.ricker(point, 4)) fig = plt.figure(figsize = (8, 8)) ax = fig.add_subplot(1, 1, 1) # Move left y-axis and bottim x-axis to centre, # passing through (0,0) ax.spines['left'].set_position('center') ax.spines['bottom'].set_position('center') # Eliminate upper and right axes ax.spines['right'].set_color('none') ax.spines['top'].set_color('none') plt.grid(True) plt.plot(hat) plt.show() Output: Comment More infoAdvertise with us Next Article How to plot ricker curve using SciPy - Python? skrg141 Follow Improve Article Tags : Python Python-matplotlib Python-scipy Practice Tags : python Similar Reads How to plot Andrews curves using Pandas in Python? Andrews curves are used for visualizing high-dimensional data by mapping each observation onto a function. It preserves means, distance, and variances. It is given by formula: T(n) = x_1/sqrt(2) + x_2 sin(n) + x_3 cos(n) + x_4 sin(2n) + x_5 cos(2n) + ⦠Plotting Andrews curves on a graph can be done 2 min read Create Scatter Plot with smooth Line using Python A curve can be smoothened to reach a well approximated idea of the visualization. In this article, we will be plotting a scatter plot with the smooth line with the help of the SciPy library. To plot a smooth line scatter plot we use the following function: scipy.interpolate.make_interp_spline() from 2 min read Scatter plot using Plotly in Python Plotly Python is a library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. Plotly python is an interactive visualization 5 min read Sunburst Plot using Plotly in Python Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library 4 min read Simple Plot in Python using Matplotlib Creating simple plots is a common step in data visualization. These visual representations help us to understand trends, patterns and relationships within data. Matplotlib is one of the most popular plotting libraries in Python which makes it easy to generate high-quality graphs with just a few line 4 min read Carpet Plots using Plotly in Python A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. Plotly is an interactive visualization libra 3 min read Plotting polar curves in Python A point in polar coordinates is represented as (r, θ) where r is the distance from the origin and θ is the angle measured from the origin. Any mathematical function in Cartesian coordinate system can be plotted using the polar coordinates. The matplotlib.pyplot module contains a function polar() whi 3 min read How To Make Scatter Plot with Regression Line using Seaborn in Python? In this article, we will learn how to male scatter plots with regression lines using Seaborn in Python. Let's discuss some concepts : Seaborn : Seaborn is a tremendous visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make s 2 min read 3D Cone Plots using Plotly in Python Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library 2 min read Carpet Contour Plot using Plotly in Python A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization libra 2 min read Like