[Plplot-devel] [Fwd: [ plplot-Bugs-2040815 ] cairo driver does not clip plpoin symbols outside viewport]
Hello, can someone have a look at this particular issue? (I am not familiar with the cairo driver myself ;)) Regards, Arjen --- Begin Message --- Bugs item #2040815, was opened at 2008-08-06 21:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102915&aid=2040815&group_id=2915 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: cairo driver does not clip plpoin symbols outside viewport Initial Comment: The cairo driver does not clip symbols plotted by plpoin outside the viewport. For example, this code plots a symbol outside the viewport in all cairo drivers. plinit() plenv(0,1,0,1,0,0) plpoin([1.05],[0.5],0) plend() Thanks, Miguel <[EMAIL PROTECTED]> -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102915&aid=2040815&group_id=2915 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel --- End Message --- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Test results of latest svn
Alan W. Irwin wrote: > On 2008-08-07 17:11-0600 Orion Poplawski wrote: > >> Orion Poplawski wrote: >>> Looking good. I think the ada hang issue is a problem with my test >>> machine. >> >> Scratch that. Ada hang is pretty reproducible on Fedora Rawhide. >> >> >> Get hang on i386, on x86_64: >> >> 10/ 17 Testing examples_ada >> Test command: /bin/bash -c >> EXAMPLES_DIR=/builddir/build/BUILD/plplot-5.9.0-svn8608/fedora/examples\ >> SRC_EXAMPLES_DIR=/builddir/build/BUILD/plplot-5.9.0-svn8608/examples\ >> PLPLOT_LIB=/builddir/build/BUILD/plplot-5.9.0-svn8608/data/\ >> ./plplot-test.sh\ --device=psc\ --front-end=ada >> Test timeout computed to be: 1500 >> Testing front-end ada >> PLplot library version: 5.9.0 >> raised STORAGE_ERROR : stack overflow (or erroneous memory access) >> -- Process completed >> ***Failed > > Orion, I get that same run-time error message, but until now nobody else > saw > it. Thanks for the confirmation. My system is also 64-bit (amd64) so it > may > be related to that. Okay, tracked it down to example 19. Wishlist: a verbose testing option that would output the actual command executed for each test. /scratch/orion/redhat/plplot-5.9.0/plplot-5.9.0-svn8608/fedora/examples/ada/x19a -dev psc -o ./x19a.psc Unfortunately I don't currently have a physical F9 x86_64 machine and gdb is currently crashing my xen instance. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] plgfci / plsfci and fortran 95
On Sun, Aug 10, 2008 at 01:24:29PM +0200, Arjen Markus wrote: > >> On 2008-08-01 22:24+0100 Andrew Ross wrote: > >> > >> I also noticed the integer(16) and did not like it since in fortran 77 > >> at > >> least integer*8 would correspond to 64 bits and integer*16 to 128 bits. > >> Arjen, do you know about this? > >> > >>> Can you test again with my fix and see what happens? > >> > >> The f95 example build errors are gone now. Also, the resulting C and > >> f95 > >> results agree exactly now. So your change appears to be a good fix > >> for the 64-bit problem I found. > >> > > > > KIND numbers in Fortran 95 do not have to indicate the number of bytes > > (despite the fact that many compilers do use that number to indicate > > the KIND). I am not sure why you get a kind 16 - I will have to look > > into that, but I suspect that the way to generate the KIND number in > > CMakeLists.txt is not quite correct (or there is a problem in the > > compiler). > > > > I will look into this one. > > > > I found the cause: z'xxx' returns an integer whose kind is not > related to the actual number but is some predefined > compiler-dependent value. > > See this little program: > > program longint > integer, parameter :: z7 = kind(z'7000') > integer, parameter :: z8 = kind(z'8000') > > write(*,*) "z'0': ",z'0', kind(z'0') > write(*,*) "z'7000': ",z'7000', kind(z'7000'), z7 > write(*,*) "z'8000': ",z'8000', kind(z'8000'), z8 > end program > > The result on a 32-bits PC with some version of gfortran (under Cygwin) > is: > > z'0': 0 8 > z'7000':1879048192 8 8 > z'8000':2147483648 8 8 > > and with some version of g95 (under MinGW): > > z'0': 0 4 > z'7000': 1879048192 4 4 > z'8000': -2147483648 4 4 > > So, depending on the compiler, z'' gives a default integer > (g95, this version) or an integer that is larger than that > (gfortran; quite possibly the largest integer kind that is supported). > If the compiler on a 64-bits platform behaves like gfortran in my > case, then the result is very likely to be a 16-bytes integer. > > My suggestion is to use: > > integer, parameter :: plunicode = selected_int_kind( 10 ) > > This will give a kind number for kinds just large enough > to fit a number like 2**32, actually 10**10 will fit too. > On most platforms (certainly the popular ones) this leads > to a 64-bits integer. > > I have not changed the CMakeLists.txt file yet, because I first > want to make sure that this is an acceptable solution. Arjen, Further testing with ifort and old versions of gfortran has also lead to problems with my original implementation of plunicode using kind. I've followed your recommendation and it seems to work more reliably on the compilers available to me. Thanks Andrew - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Test results of latest svn
On Mon, Aug 11, 2008 at 02:43:52PM -0600, Orion Poplawski wrote: > Alan W. Irwin wrote: > > On 2008-08-07 17:11-0600 Orion Poplawski wrote: > > > >> Orion Poplawski wrote: > >>> Looking good. I think the ada hang issue is a problem with my test > >>> machine. > >> > >> Scratch that. Ada hang is pretty reproducible on Fedora Rawhide. > >> > >> > >> Get hang on i386, on x86_64: > >> > >> 10/ 17 Testing examples_ada > >> Test command: /bin/bash -c > >> EXAMPLES_DIR=/builddir/build/BUILD/plplot-5.9.0-svn8608/fedora/examples\ > >> SRC_EXAMPLES_DIR=/builddir/build/BUILD/plplot-5.9.0-svn8608/examples\ > >> PLPLOT_LIB=/builddir/build/BUILD/plplot-5.9.0-svn8608/data/\ > >> ./plplot-test.sh\ --device=psc\ --front-end=ada > >> Test timeout computed to be: 1500 > >> Testing front-end ada > >> PLplot library version: 5.9.0 > >> raised STORAGE_ERROR : stack overflow (or erroneous memory access) > >> -- Process completed > >> ***Failed > > > > Orion, I get that same run-time error message, but until now nobody else > > saw > > it. Thanks for the confirmation. My system is also 64-bit (amd64) so it > > may > > be related to that. > > Okay, tracked it down to example 19. Wishlist: a verbose testing option > that would output the actual command executed for each test. > > /scratch/orion/redhat/plplot-5.9.0/plplot-5.9.0-svn8608/fedora/examples/ada/x19a > > -dev psc -o ./x19a.psc > > Unfortunately I don't currently have a physical F9 x86_64 machine and > gdb is currently crashing my xen instance. I've also reproduced this now on an 64 bit machine running Ubuntu Hardy. A 32 bit machine with the same version of Ubuntu on does not give the error. The problem is in the final page of example 19 - I assume it is in the calls to plmap / plmeridian using mapform19. Hopefully this might help track it down. Andrew - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Ada example 14 fails to build
I've now fixed this by adding a function version of the plgdev procedure, following what is done for plgver. Andrew On Sat, Aug 09, 2008 at 10:15:08PM +0100, Andrew Ross wrote: > > Jerry, > > Your recent ada 14 example fails to build for me with the following > error message. > > [ 93%] Building Ada object examples/ada/CMakeFiles/x14a.dir/x14a.o > x14a.adb:297:15: no candidate interpretations match the actuals: > x14a.adb:297:35: expected type "Standard.Integer" > x14a.adb:297:35: found procedure name instead of function > x14a.adb:297:35: ==> in call to "To_Unbounded_String" at > a-strunb.ads:61 > x14a.adb:297:35: ==> in call to "To_Unbounded_String" at > a-strunb.ads:58 > x14a.adb:299:59: missing argument for parameter "Device_Name" in call to > "plgdev" declared at plplot_traditional.ads:840 > make[2]: *** [examples/ada/CMakeFiles/x14a.dir/x14a.o] Error 1 > make[1]: *** [examples/ada/CMakeFiles/x14a.dir/all] Error 2 > make: *** [all] Error 2 > > Andrew > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
[Plplot-devel] Plplot examples and ifort
I've been testing the fortran examples using a rather old version of ifort (8.1) on 64-bit linux. In order to get the examples to compile and run I encountered two issues 1) Example 20 requires the -assume byterecl flag to ifort in order to get byte length records. Otherwise reading lena.pgm fails with an error. This is in accord with the comment in the example. 2) Example 21 requires the -O0 flag, otherwise the compiler optimises away the test (x.ne.x) in the function myisnan. For 1) it would be nice to automatically add this option if ifort is detected. For 2) the flag to turn off optimisation is a bit of a fix. ifort does have an isnan intrinsic (along with many other compilers) which we could use instead. This requires some extra cmake logic though. Any suggestions? After these two changes I get the following with ifort 8.1 (64-bit) f77 Missing examples : 26 Differing examples : 20 21 23 f95 Missing examples : 24 25 26 27 Differing examples : 20 21 With gfortran 4.1 on the same machine I get f77 Missing examples : 26 Differing examples : 20 23 f95 Missing examples : 24 25 26 27 Differing examples : 20 For example 21, some of the differences are just rounding errors. I do however see some additional line at the end like. This is from plot3d. I also see similar extra lines from the java and octave versions on a different machine, so again I suspect a rounding error. Andrew - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] [Fwd: [ plplot-Bugs-2040815 ] cairo driver does not clip plpoin symbols outside viewport]
I responded to this on the SF site, but it looks like the response did not get forwarded to the list. The issue is only that text clipping is not used by default with the cairo drivers as it made them much slower. -Hazen On Aug 11, 2008, at 3:29 AM, Arjen Markus wrote: Hello, can someone have a look at this particular issue? (I am not familiar with the cairo driver myself ;)) Regards, Arjen From: "SourceForge.net" <[EMAIL PROTECTED]> Date: August 6, 2008 5:56:53 PM EDT To: [EMAIL PROTECTED] Subject: [Plplot-devel] [ plplot-Bugs-2040815 ] cairo driver does not clip plpoin symbols outside viewport Bugs item #2040815, was opened at 2008-08-06 21:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/? func=detail&atid=102915&aid=2040815&group_id=2915 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: cairo driver does not clip plpoin symbols outside viewport Initial Comment: The cairo driver does not clip symbols plotted by plpoin outside the viewport. For example, this code plots a symbol outside the viewport in all cairo drivers. plinit() plenv(0,1,0,1,0,0) plpoin([1.05],[0.5],0) plend() Thanks, Miguel <[EMAIL PROTECTED]> -- You can respond by visiting: https://sourceforge.net/tracker/? func=detail&atid=102915&aid=2040815&group_id=2915 -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
[Plplot-devel] Wishlist: a verbose testing option
On 2008-08-11 14:43-0600 Orion Poplawski wrote: > Wishlist: a verbose testing option that > would output the actual command executed for each test. I get a similar result "by hand" by, e.g., putting the command echo $index inside the shell loop in plplot_test/test_ada.sh (or any of the other scripts in that directory if a problem occurs for a different language). But you are right, there should be a plplot_test.sh option passed to the various plplot_test shell scripts to echo the command line automatically (rather than just echoing the index as above). Such an option would work in the install tree where you are running plplot_test.sh directly, and we could automatically use the suggested plplot_test.sh --verbose option whenever we run ctest. (Note, the plplot_test.sh --verbose output will only show for that case if you invoke the --verbose option for ctest which is exactly what we want.) I will implement this idea soon. Thanks for bringing up the issue. 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); PLplot scientific plotting software package (plplot.org); 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 __ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Plplot examples and ifort
On 2008-08-11 22:09+0100 Andrew Ross wrote: > > I've been testing the fortran examples using a rather old version of > ifort (8.1) on 64-bit linux. In order to get the examples to compile and > run I encountered two issues > > 1) Example 20 requires the -assume byterecl flag to ifort in order to > get byte length records. Otherwise reading lena.pgm fails with an error. > This is in accord with the comment in the example. > > 2) Example 21 requires the -O0 flag, otherwise the compiler optimises > away the test (x.ne.x) in the function myisnan. > > For 1) it would be nice to automatically add this option if ifort is > detected. For 2) the flag to turn off optimisation is a bit of a fix. > ifort does have an isnan intrinsic (along with many other compilers) > which we could use instead. This requires some extra cmake logic though. > > Any suggestions? (1) Normally, I believe it should be the user's responsibility to set the flags appropriate for their compiler. So what happens if you simply use FC='ifort -assume byterecl' ? If that works for all examples without messing them up, then perhaps we should recommend that ifort option in the wiki along with an explanation that example 20 requires byte-length records. That seems simpler to me than detecting ifort and fooling around with a special compile option for example 20 for that compiler. However, I don't feel strongly about it so do what you think is best. (2) I think your idea of detecting whether the isnan intrinsic is available is a good one since -O0 does seem like a workaround. Most of the work is already done using the CheckFortranFunctionExists.cmake file for CMake-2.6.0 (which I know about since I wrote the first version of it for the FreeEOS project). For now, we can simply copy that file from CMake-2.6.0 modules to our cmake/modules directory so that those with 2.4.8 can still use PLplot. > > After these two changes I get the following with ifort 8.1 (64-bit) > > f77 > Missing examples : 26 > Differing examples : 20 21 23 > f95 > Missing examples : 24 25 26 27 > Differing examples : 20 21 > > With gfortran 4.1 on the same machine I get > > f77 > Missing examples : 26 > Differing examples : 20 23 > f95 > Missing examples : 24 25 26 27 > Differing examples : 20 > > For example 21, some of the differences are just rounding errors. I do > however see some additional line at the end like. This is from plot3d. > I also see similar extra lines from the java and octave versions on a > different machine, so again I suspect a rounding error. I am going to have a look at ndiff (http://www.math.utah.edu/~beebe/software/ndiff/) which is advertised to ignore rounding errors. I will report back later on its suitability for our ctest needs. 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); PLplot scientific plotting software package (plplot.org); 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 __ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Ada example 14 fails to build
Thanks, Andrew. Sorry for not taking care of it myself--trying to get my head around some other niggling issues with the Ada stuff right now. Jerry On Aug 11, 2008, at 1:51 PM, Andrew Ross wrote: > > I've now fixed this by adding a function version of the plgdev > procedure, following what is done for plgver. > > Andrew > > On Sat, Aug 09, 2008 at 10:15:08PM +0100, Andrew Ross wrote: >> >> Jerry, >> >> Your recent ada 14 example fails to build for me with the following >> error message. >> >> [ 93%] Building Ada object examples/ada/CMakeFiles/x14a.dir/x14a.o >> x14a.adb:297:15: no candidate interpretations match the actuals: >> x14a.adb:297:35: expected type "Standard.Integer" >> x14a.adb:297:35: found procedure name instead of function >> x14a.adb:297:35: ==> in call to "To_Unbounded_String" at >> a-strunb.ads:61 >> x14a.adb:297:35: ==> in call to "To_Unbounded_String" at >> a-strunb.ads:58 >> x14a.adb:299:59: missing argument for parameter "Device_Name" in >> call to >> "plgdev" declared at plplot_traditional.ads:840 >> make[2]: *** [examples/ada/CMakeFiles/x14a.dir/x14a.o] Error 1 >> make[1]: *** [examples/ada/CMakeFiles/x14a.dir/all] Error 2 >> make: *** [all] Error 2 >> >> Andrew >> >> >> - >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> ___ >> Plplot-devel mailing list >> Plplot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/plplot-devel >> > > -- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel