Skip to content

Example fails due to MethodError for "linestyle" attribute #493

@smonsays

Description

@smonsays

When trying to execute the example in the README:

using PyPlot
x = range(0; stop=2*pi, length=1000); y = sin.(3 * x + 4 * cos.(2 * x));
plot(x, y, color="red", linewidth=2.0, linestyle="--")
title("A sinusoidally modulated sinusoid")

I get the following error in Julia 1.4.2 and PyPlot v2.9.0

MethodError: no method matching py_linestyle(::Symbol, ::String)

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