X Tutup
Skip to content

Polar plot cos(2x) #7120

@ghost

Description

Matplotlib version - - [ '1.5.2']
install Matplotlib -- auto-install through winpython 3.5

Code:

import numpy as np
import matplotlib.pyplot as plt
plt.close("all")

x = np.linspace(0.0, 2 * np.pi, 1000)
y = np.cos(2*x)

plt.polar(x, y)

Problem: Generates only 2 lobes (not 4 lobes)
Incorrect figures (generated by Matplotlib) and correct figure (by matlab) are attached

Incorrect(Matplotlib).pdf
Correct(Matlab).pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup