Giter VIP home page Giter VIP logo

Comments (4)

tbreloff avatar tbreloff commented on May 17, 2024 1

Note... this should be possible to do now, just by removing the series manually:

empty!(p.series_list)

But we also need to update/reset the Axis objects, and some others:

sp.attr[:projection]
plt.n

Might want to just reset all? If so, gotta remove the "init" fields.

from plots.jl.

AndreiUlmeyda avatar AndreiUlmeyda commented on May 17, 2024

+1

from plots.jl.

jjstickel avatar jjstickel commented on May 17, 2024

I'd really like to have "clf" functionality for mulitple active plot windows. I cannot seem to reliably reuse more than one plot window. I am using pyplot backend from REPL. Example:

x = range(0, stop=10, length=11)
y = x.^2
using Plots
using PyCall; pygui(:qt); pyplot()
p1 = plot(x,x, reuse=false, show=true)
p2 = plot(x,y, reuse=false, show=true)
plot!(p1, x,y, reuse=true) # adds to plot p1; reuse keyword is ignored?
display(p1); plot(x,y, reuse=true) # clears and reuses p2, not p1

Here, what I want is to reuse (a.k.a. clear or reset) the first plot window, but I cannot find a way to do it. I'm posting here, because I think this is the relevant ticket. Let me know if I should open a separate ticket.

from plots.jl.

MadGeometer avatar MadGeometer commented on May 17, 2024

+1

Yea, removing items from p.series_list with
deleteat!(p.series_list, 2)

does not force the graph to update.

from plots.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.