From: Alan W. I. <ir...@be...> - 2015-06-01 20:06:11
|
On 2015-06-01 19:01+0100 Phil Rosenberg wrote: > Hi Alan > If you run the example with default size, then resize the window down to a few tens of pixels then you will see the issue. It occurs because the text remains the same size. So spills over the edge of the viewport. Hi Phil: I have just tried resizing with -dev xwin, qtwidget, wxwidgets, and xcairo. The first two are fine, and resize the graphics and text size appropriately for the resize, and keep the resulting plot centred on the resized window. @Arjen and Phil: Please check on Windows that the qtwidget device also resizes appropriately on that platform. @Phil: The wxwidgets device handles the graphics resizing correctly, and also keeps the plot centred on the resized window. However, as you said above the text is not currently resized. Therefore, I believe that is the issue you should address, and the 3rd example is fine as is. @To those here who are familar with the cairo family of device drivers: The xcairo device on platforms with X does not handle resizes correctly at all; it just displays the same plot with everything the same size and position regardless of how it is resized. I am hoping someone here will fix those resizing issues. And I presume a similar fix needs to be applied for the wincairo device on platforms with access to raw Windows graphics. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |