On Sat, Oct 25, 2014 at 10:18:23PM -0700, Alan Irwin wrote: > On 2014-10-25 15:36-0700 Alan W. Irwin wrote: > > > Therefore, my guess is these misalignment issues for the ps device > > driver [for example 14] are due to some long-standing multistream issue for > > that driver > > rather than something introduced recently by dropping the emission of > > isolated M commands for every state change. But further investigation > > (which I have no time for now) will be required to sort that out, and > > meanwhile the good results for all non-multistream cases that I found > > above are quite reassuring. > > Hi Andrew: > > The example 14 "misalignment issues" turned out to have nothing to do > with multistream issues or extra M commands. Instead, I could > reproduce the same issues with example 1 by specifying the same > geometry externally for example 1 that is specified internally > (500x410+100+2 for "master" and 500x410+650+20 for slave) in the > example 14 case. > > Will you take a look at the following results for various geometry > offsets for example 1, and let me know what you think? > > examples/c/x01c -dev psc -geometry 500x410 -o test1.psc > examples/c/x01c -dev psc -geometry 500x410+100+20 -o test2.psc > examples/c/x01c -dev psc -geometry 500x410+650+20 -o test3.psc > > I would like your take on the above results because of your knowledge > of our ps and psttf device drivers, PostScript, and bounding box > calculations. I suspect gv is having trouble displaying test2.psc and > test3.psc because of bounding-box miscalculations by our ps and psttf > device drivers when offsets are applied. If you agree, I hope you will > be able to come up with a fix for both device drivers.
Alan, A quick diff of the offending files above (thanks for the simple test example!) shows that there are two issues. Firstly the bounding box is set wrong. Secondly the black rectange which fills the background is plotted too big. I think I've fixed both issues now, at least for the test case you presented. The changes should have no impact for cases where there is no offset. I've checked example 14 and the bounding boxes are correct in this case, although the image for the second plot looks rather squashed so there may be further issues. Like everyone else this has very much been by trial and error. I think that's the fundamental problem with all this bounding box code. Oh, and I've not actually tested the psttf changes (don't currently have all the dependencies installed), but it's identical code to the ps driver so should be ok. Andrew ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel