Skip to content

AttributeError: 'Figure' object has no attribute 'add_shape' #2099

@ef93

Description

@ef93

Hi
I'm using plotly=4.1.1 (ubuntu 18.04) when I'm trying to run the first sample code in this link (https://plot.ly/python/shapes/) this error occurs:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-42d58f404ac6> in <module>
     18 
     19 # Add shapes
---> 20 fig.add_shape(
     21         # Line Vertical
     22         go.layout.Shape(

AttributeError: 'Figure' object has no attribute 'add_shape'

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