## Conformal plotting python

I’m working on the joukowsky transformation for plotting airfoils and I’m trying to do so with python. The conformal mapping should be pretty straight forward but can’t seem to find a guide on how to …

## How to use values of find_peak function Python

I have to analyse a PPG signal. I found something to find the peaks but I can’t use the values of the heights. They are stored in like a dictionary array or something and I don’t know how to extract …

## ValueError: x and y must have same first dimension, but have shapes (1, 2) and (2,)

terminal showing, ValueError: x and y must have same first dimension, but have shapes (1, 2) and (2,), how to fix this problem? from scipy.signal import argrelextrema data = np.array([-1, 0, 1, 2, 1,…

## Python – Differential equation solver for time-dependent coefficients gives different dynamics for different time offsets

I am solving the dynamics of a system when it interacts with a pulse, which basically is solving a time-dependent differential equation. In general it works fine, but whenever I take the bandwidth of …

## Cupy says it has scipy’s cg implemented, but cannot find cg(conjugate gradient method) when installed

I am unable to find this https://docs.cupy.dev/en/latest/reference/generated/cupyx.scipy.sparse.linalg.cg.html#cupyx.scipy.sparse.linalg.cg after the installation of cupy. It says module not found Can …

## How do I construct an incidence matrix from two dataframe columns using scipy.sparse.coo_matrix((data, (i, j)))?

I have a pandas DataFrame containing two columns [‘A’, ‘B’]. Each column is made up of integers. I want to construct a sparse matrix with the following properties: row index is all integers from 0 to …

## How to draw colored rectangles around grouped clusters in dendogram?

I try to add colored rectangle to dendrogram results like as follow: this is my dendrogram codes: from scipy.cluster.hierarchy import dendrogram … plt.figure(figsize=(250, 100)) labelsize=20 …

## Pulling x-values of spline integer y-values?

I have the given sample data and interpolated spline: import matplotlib.pyplot as plt import numpy as np from scipy import interpolate x = [0.1, 1.5, 2.3, 5.5, 6.7, 7] y = [5, 4, 5, 2, 2, 3] s = …

## How to hide `delta_grad == 0.0` warning in scipy.optimize.minimize?

I have a loop that executes several hundred optimizations using scipy.optimize.minimize. Unfortunately, I keep getting this annoying warning: C:UsersLeonidasAnaconda3libsite-packagesscipy…

## Fitting data to a complementary error function with multiple variables in Python

I am having trouble to fit experimental data to a complementary error function in Python 3.7.4. import matplotlib.pyplot as plt import math import numpy as np from scipy import optimize from scipy …