Hi, Werner, On Jan 5, 2010, at 14:54 , Werner Smekal wrote:
>> Is there a way to make a stream be "synchronous" (i.e. unbuffered)? > > I think, this has more to do with the driver you are using, i.e. > the plplot library processes all plot commands immediately, but the > driver only updates the screen now and then. plflush() forces the > driver to update the screen. We had this discussion already (23. > August 2009), but I think we didn't come to a conclusion, or > anything was changed accordingly. > > Which driver do you use? Thanks for pointing me toward that thread. My observations were made using the xwin driver. If I use the xcairo, tk, or aqt drivers, the first (at least) plotting command puts nothing on the screen until I call plflush (etc)! FWIW, PGPLOT defaults to synchronous behavior, but allows the user to turn on buffering (pgbbuf), do a bunch of plotting, and then turn off buffering (pgebuf). One could also call an update function (pgupdt) that is analogous to plflush. As I said before, I think buffering is great for performance, but not great for interactive use where performance doesn't really matter. Note that I am referring to interactively invoking the plotting functions rather than interacting with a plot via the GUI (e.g. picking points etc). In any case, giving the user/programmer the ability to control whether or not to buffer is a good thing (IMHO). I will consider giving my bindings a "sync" variable and, if enabled, call plflush after each invocation of a plotting function. Thanks again, Dave ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel