Plot string values in matplotlib

后端 未结 5 2106
南旧
南旧 2020-12-06 02:17

I am using matplotlib for a graphing application. I am trying to create a graph which has strings as the X values. However, the using plot function expects a nu

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 03:13

    Why not just make the x value some auto-incrementing number and then change the label?

    --jed

提交回复
热议问题