GithubHelp home page GithubHelp logo

Comments (3)

Erhannis avatar Erhannis commented on August 24, 2024

Ah, nevermind. (Plot).redraw() is what I needed.

from androidplot.

GremlinsInGame avatar GremlinsInGame commented on August 24, 2024

Holy crap... This has plagued me for Hours!!! Hours!.
I could load data when I launched the activity with the Plot but couldnt load a Series after that.
Why the heck wouldn't the plot redraw itself after adding a Series.?
In my case, I need to open a file and load the dataseries after the plot view has been loaded for a while and was blank..

from androidplot.

halfhp avatar halfhp commented on August 24, 2024

Why the heck wouldn't the plot redraw itself after adding a Series

The best way to think about it redraw is as a batching mechanism; you apply changes to the Plot and then commit them by invoking redraw.

The mechanism exists because it's inefficient and produces ugly visual effects to auto apply changes sequentially instead of all at once. Androidplot has no way of knowing whether you're adding one series or ten. The same expectation could be placed on any layout changes such as font or color changes, etc. If it were to redraw its self after each addition or layout change and multiple changes are made at once, the result would be ugly flickering / resizing effects instead of a single smooth update. It would also create synchronization headaches for certain kinds of multithreaded dynamic implementations and break many kinds of property animations.

from androidplot.

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.