Thanks to visit codestin.com
Credit goes to github.com

Skip to content

psd() draw a wrong line with sliced array(Matplotlib 1.4.0) #3465

Closed
@ytchanglp

Description

@ytchanglp

Check this issue by the following code.
The lines in the plot should be the same.

import numpy as np
import matplotlib.pyplot as plt

data = np.arange(1000)

a = np.empty((1000, 2))
b = np.empty((2, 1000))

plt.figure()

a[:, 0] = data
plt.psd(a[:, 0])

b[0, :] = data
plt.psd(b[0, :])

plt.show()

figure_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions