Skip to content

arrowprops and Dict() #9

Closed
Closed
@PaulSoderlind

Description

@PaulSoderlind

You asked us to report issues...so here is another one: annotate/arrowprops requires an explicit conversion via pydict. Not a big deal, but it differs from PyPlot.

figure()
axis([-4,4,0,0.4])
annotate("there",xy=[0,0.0025],xycoords="data",xytext=[-0.45,0.1],               #fails
         textcoords="data",ha="center",va="top",
         arrowprops=Dict("facecolor"=>"black","width"=>0.5,"headwidth"=>7.0))
#annotate("there",xy=[0,0.0025],xycoords="data",xytext=[-0.45,0.1],              #works
#         textcoords="data",ha="center",va="top",
#         arrowprops=pydict(Dict("facecolor"=>"black","width"=>0.5,"headwidth"=>7.0)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythoncallupstream PythonCall issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions