Re: [Plplot-devel] Can't build Tcl/Tk on OS X

2012-08-27 Thread Arjen Markus
Hi Alan, Jerry,

I have not looked at drivers/tkwin.c and 
bindings/tk-x-platform\ yet, but what I normally do on 
Windows to
test the Tcl/Tk bindings is this:
- Set the path to include the PLplot DLLs
- Start ../../utils/pltcl.exe
- source x01 etc. - not x01.tcl as x01 contains the
   initialisation commands.

The advantage of this is that you start a customised 
tclsh,
rather than wish, so that the graphical stuff all comes
from the PLplot extension.

Jerry, is there a pltcl executable available on OS X?
If so, what is the result?

Regards,

Arjen

On Thu, 23 Aug 2012 14:02:21 -0700 (PDT)
  "Alan W. Irwin"  wrote:
> To Jerry and Arjen:
> 
...
> 
> @Arjen:
> 
> This seems like a very similar problem to what you 
>encounter on
> Windows when you try and get the Tk part of PLplot to 
>work.
...

 

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.





--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Can't build Tcl/Tk on OS X

2012-08-27 Thread Jerry

On Aug 27, 2012, at 11:59 AM, Arjen Markus wrote:

> Hi Alan, Jerry,
> 
> I have not looked at drivers/tkwin.c and bindings/tk-x-platform\ yet, but 
> what I normally do on Windows to
> test the Tcl/Tk bindings is this:
> - Set the path to include the PLplot DLLs
> - Start ../../utils/pltcl.exe
> - source x01 etc. - not x01.tcl as x01 contains the
>  initialisation commands.
> 
> The advantage of this is that you start a customised tclsh,
> rather than wish, so that the graphical stuff all comes
> from the PLplot extension.
> 
> Jerry, is there a pltcl executable available on OS X?
> If so, what is the result?
> 
> Regards,
> 
> Arjen
> 
Hi Arjen,

I have two pltcl: /usr/local/plplot_build_dir/utils/pltcl and 
/usr/local/plplot/bin/pltcl, both the same size at 22,004 bytes.

MBPro:~ jb$ cd /usr/local/plplot_build_dir/examples/tcl 
MBPro:tcl jb$ export PATH=/usr/local/plplot/lib:$PATH
MBPro:tcl jb$ /usr/local/plplot/bin/pltcl
pltcl> source x01
PLplot library version: 5.9.9

Plotting Options:
 < 1> xwin   X-Window (Xlib)
 < 2> tk Tcl/TK Window
 < 3> ps PostScript File (monochrome)
 < 4> pscPostScript File (color)
 < 5> xfig   Fig file
 < 6> null   Null device
 < 7> tkwin  New tk driver
 < 8> memUser-supplied memory device
 < 9> svgScalable Vector Graphics (SVG 1.1)
 <10> bmpqt  Qt Windows bitmap driver
 <11> jpgqt  Qt jpg driver
 <12> pngqt  Qt png driver
 <13> ppmqt  Qt ppm driver
 <14> tiffqt Qt tiff driver
 <15> svgqt  Qt SVG driver
 <16> qtwidget   Qt Widget
 <17> epsqt  Qt EPS driver
 <18> pdfqt  Qt PDF driver
 <19> extqt  External Qt driver
 <20> memqt  Memory Qt driver
 <21> xcairo Cairo X Windows Driver
 <22> pdfcairo   Cairo PDF Driver
 <23> pscairoCairo PS Driver
 <24> svgcairo   Cairo SVG Driver
 <25> pngcairo   Cairo PNG Driver
 <26> memcairo   Cairo Memory Driver
 <27> extcairo   Cairo External Context Driver

Enter device number or keyword: 16
 Right after I hit Enter here, what I believe might be the Qtwidget window 
appears as an empty black window (with a title bar) for about 1/10 second 
before it disappears.
QColor::setRgb: RGB parameters out of range

*** PLPLOT ERROR, IMMEDIATE EXIT ***
plP_setphy: device minima must not exceed maxima
Program aborted
MBPro:tcl jb$

If I select 4 (psc), a PS file is created of size 21,483 bytes but my PDF 
viewer refuses to open it, reporting a non-specific PostScript error. If I run 
x01c and output to PS, the file is 47,429 and opens OK (except that it is 
rotated 90 degrees but that's another issue). Doing a file comparison of the PS 
files, the Tcl file's first three lines look like this:

%!PS-Adobe-2.0 EPSF-2.0
%%BoundingBox: -429496697 -429496697 5090 -4484
%%%

whereas the first three lines of the C-generated PS look like this:

%!PS-Adobe-2.0 EPSF-2.0
%%BoundingBox: 44 44 580 738
%%

The Tcl file contains 344 nan's of which 64 are lines like this:

/Helvetica nan SF

and 62 * 4 nan's are in lines like this:

/Helvetica [nan nan nan nan 0 0] SF

That file does end in %%EOF which I think is a valid eof marker for PS.

The C-generated PS contains zero nan's.

I've attached the Tcl PS file but I don't know if the list server will allow 
it, so I'll cc you and Alan.

When I select <2> or <7> from the device list after starting x01, the results 
are the same as when running x01c which I have reported earlier.

Jerry

<>


> On Thu, 23 Aug 2012 14:02:21 -0700 (PDT)
> "Alan W. Irwin"  wrote:
>> To Jerry and Arjen:
> ...
>> @Arjen:
>> This seems like a very similar problem to what you encounter on
>> Windows when you try and get the Tk part of PLplot to work.
> ...
> 
> 
> 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.
> 
> 
> 
> 

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel