Julia Plotting: delete and modify existing lines

前端 未结 3 1960
孤街浪徒
孤街浪徒 2021-01-13 01:31

Two questions in one: Given a line plotted in Julia, how can I

  1. delete it from the plot and legend (without clearing the whole plot)
  2. change its propert
3条回答
  •  -上瘾入骨i
    2021-01-13 02:25

    You cannot do that with the Plots package. Even the "cheating" method in the answer by Pei Huang will end up with the whole frame getting redrawn. You can do this with Makie, though - in fact the ability to interactively change plots was one of the reasons for creating that package (point 1 here http://makie.juliaplots.org/dev/why-makie.html) Not sure about the other popular plotting packages for Julia.

提交回复
热议问题