From: António R. T. <ar...@gm...> - 2018-11-22 19:13:24
|
Hi thanks for your interest. Really it is hard to understand what is happening. Just a little background I have an application that runs in linux, Mac and Windows and as the people I work with are not in compile and install stuff in their computers they use a binary of the application. It works pretty well plplot produces a raster png file using cairo driver that is then rendered at screen.before build the plot the available area in pixels is retrieved and sent to plplot plsdev(device); plsfnam(filename); if(xsize && ysize){ savedxsize=xsize; savedysize=ysize; } if(device.contains("psc")){ plspage(0.,0.,savedysize,savedxsize,0,-10); }else plspage(dpi,dpi,savedxsize,savedysize,0,0); } dpi=0.; I used to have zero instead of dpi but lately i tried to test if there was a change if dpi was different from zero. xsize and ysize are the available pixels. Well in this new windows high dpi screens fonts get bad positioned and scaled but scaled t was easy to solve. The more strange is along side with rendering the png one can choose to save the plot and in those cases the plot is again built for a specific file format. Attach is the result in pdf. What is exactly equal one can see in the screen and it puzzles me how can this be related to the screen density as it is stored directly on file (pdf cairo driver) as in docs says the fonts height is related with the driver so instead plschr(o.,fontscale);//character height I'm now using plschr(somefloat.,fontscale); as eventually plbox could for some reason take 0 as font size. in attach a pdf plot that the only interaction with screen was getting savedxsize,savedysize and then made with pdf cairo driver. and yet it easy to see labels are in wrong place. Beam.pdf and also another plot Beam_everywhere.pdf as it is obtained with the same code in all the others computers MAC, Windows and linux. I'm not expecting solutions and unfortunately I cannot play with computer this is happen otherwise i would install plplot there and would test the examples. best wishes On Thu, Nov 22, 2018 at 11:58 AM Arjen Markus <Arj...@de...> wrote: > Hi António, > > > > Could you provide us a screenshot? I do not have such a screen available, > so I have never encountered the issue. A screenshot might help to clarify > the cause, as I doubt there is a configuration parameter for that at the > moment. > > > > Regards, > > > > Arjen > > > > *From:* António Rodrigues Tomé [mailto:ar...@gm...] > *Sent:* Thursday, November 22, 2018 12:46 PM > *To:* Plp...@li... > *Subject:* [Plplot-general] label distance from axis, plbox > > > > Hi, > > I'm using plplot for quite some time but recently I came across with a > problem on a High DPI display with windows (only usable by applying a 250% > zoom as recommended by windows) in this case the x axis lines cross the > numeric axis labels. I search the documentation for some ways to increase > the distance between axis numerical labels and the axis line, unfortunately > I was unable to find anything related. Is there a way to increase the > default distance between the numerical labels and axis line? > > > > best regards, > > > > > -- > > > António Rodrigues Tomé > Universidade da Beira Interior > Instituto D. Luís (lab associado) > email address: > ar...@gm... > ar...@ub... > http://www.researcherid.com/rid/A-5681-2013 > DISCLAIMER: This message is intended exclusively for the addressee(s) and > may contain confidential and privileged information. If you are not the > intended recipient please notify the sender immediately and destroy this > message. Unauthorized use, disclosure or copying of this message is > strictly prohibited. The foundation 'Stichting Deltares', which has its > seat at Delft, The Netherlands, Commercial Registration Number 41146461, is > not liable in any way whatsoever for consequences and/or damages resulting > from the improper, incomplete and untimely dispatch, receipt and/or content > of this e-mail. > -- António Rodrigues Tomé Universidade da Beira Interior Instituto D. Luís (lab associado) email address: ar...@gm... ar...@ub... http://www.researcherid.com/rid/A-5681-2013 |