Interactive selection of series in a matplotlib plot

前端 未结 3 586
梦谈多话
梦谈多话 2020-12-31 13:43

I have been looking for a way to be able to select which series are visible on a plot, after a plot is created.

I need this as i often have plots with many series. t

3条回答
  •  鱼传尺愫
    2020-12-31 13:57

    Now that plot.ly has opened sourced their libraries, it is a really good choice for interactive plots in python. See for example: https://plot.ly/python/legend/#legend-names. You can click on the legend traces and select/deselect traces.

    If you want to embed in an Ipython/Jupyter Notebook, that is also straightforward: https://plot.ly/ipython-notebooks/gallery/

提交回复
热议问题