(This email didn't get through yesterday, so I post it again). Hi David,
On Jan 5, 2010, at 11:45 PM, David MacMahon wrote: > I'm working on creating Ruby bindings to PLplot, much like the Ruby > bindings to PGPLOT (http://pgplot.rubyforge.org/). I've gotten a > fair amount of the API done and the first seven or so examples > "ported". I'll be happy to share my work once it gets a little more > complete. That would be great! This would quite a valuable addition, since Ruby is so "fashionable" nowadays. > > I've been testing my bindings using "irb", which is an interactive > Ruby shell (analogous to Python's ipython). I've noticed that when I > invoke a plotting function (e.g. plhist) only part of the plot (e.g. > part of the histogram) appears immediately. The remainder of the > plot does not appear until more plotting functions are called or > plflush is called. > > I assume this is due to buffering in the stream, which may be good > for efficiency, but is not so convenient for interactive plotting. > 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? Regards, Werner > > Thanks, > 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 -- Dr. Werner Smekal Institut fuer Angewandte Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria DVR-Nr: 0005886 email: sme...@iap.tuwien.ac.at web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ 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