How to use custom png image marker with plot?

后端 未结 3 2054
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 19:05

I would like to utilize customer markers in both scatter and line charts. How can I make custom marker out of a PNG file?

3条回答
  •  抹茶落季
    2020-11-27 19:54

    Following on from Mark's answer. I just thought I would add to this a bit because I tried to run this and it does what I want with the exception of actually displaying the icons on the graph. Maybe something has changed with matplotlib. It has been 4 years.

    The line of code that reads:

    ax.get_frame().set_alpha(0)
    

    does not seem to work, however

    ax.patch.set_alpha(0)
    

    does work.

提交回复
热议问题