Hi Andrew, Alan,

Great, I will try this as soon as I have everything working again (I have a new 
laptop which needs to be set up)

Regards,

Arjen

-----Original Message-----
From: Andrew Ross [mailto:[email protected]]
Sent: Tuesday, September 10, 2013 12:35 AM
To: [email protected]
Subject: Re: [Plplot-devel] Getting -display to work for xcairo

On Monday 09 Sep 2013 11:51:41 Alan W. Irwin wrote:
> On 2013-09-09 08:59+0200 Arjen Markus wrote:
> > - the xcairo device produces samller graphs for some reason and it
> >
> >   does not take the -display command line argument (whereas the xwin
> >   device does). Something to be repaired, I'd say. I had to use the
> >   DISPLAY environment variable instead.
> >
> > (I do not have a window manager running yet, so the windows are
> > created
> > full-screen)
>
> Just to give some quick background, src/plargs.c shows the -display
> option is implemented using the same code as the -o option so like
> that option it sets pls->FileName to whatever string (e.g., ":0.0")
> the user specifies after -display.  Then the xwin.c code uses
> pls->FileName (if set) to set the display.
>
> @Hazen: would you be able to do something similar for the xcairo
> device comfortably before the release date on September 28th?
>
> It appears to me that "Display" in drivers/cairo.c is set to NULL to
> start with so it might be trivial to use pls->FileName instead.
> However, there are a number of uses of "Display" in drivers/cairo.c so
> someone more familiar with that code than I am should implement this
> "would be nice" feature for the xcairo device.

Hazen - Don't worry, I've done it. Essentially a 1-line fix. I've also changed 
the code so failure to open the display will exit plplot immediately. The old 
behaviour led to a crash if an invalid display was set.

Arjen - Please check this works for you.

Andrew

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT 2. 
Standardize and globalize service processes across IT 3. Implement zero-touch 
automation to replace manual, redundant tasks 
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

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.

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to