Code Comments
Programming Forum and web based access to our favorite programming groups.Hi all Just uploaded another version (0.2.1) of gnuplotfortran (gnuplotfortran.sourceforge.net). Contains pm3d support, dual axis support for two dimensional plots, and some bugfixes (some minor, and one serious). Please refer to the CHANGES file. It is possible that some code using gnuplot_plot2d might be impacted (need keyword arguments). There was an issue with a line in the code that was too long for the gfortran compiler. Unfortunately, I was not able to pay close attention to the bug reports for the past two months, so that issue might still be out there. Could the person who reported that error please check if this version still has that problem, so that I can fix it and upload a minor bugfix ? I promise to try to pay closer attention to the bug reports from now on. MS
Post Follow-up to this messageHi Madhusudan Singh, g95 complains about a long line Line 2249 of gnuplot_fortran95.f90 is being truncated The line is indeed 133 characters, which is more than the 132 you're guaranteed to have. fixing that, the module compiles fine. However: g95 -c gnuplot_fortran95_testbench.f90 In file gnuplot_fortran95_testbench.f90:140 status=gnuplot_plot2d(ptr_gctrl,numpoint s,x,y1,'sin(x)',y2,'cos(x)',y3, 1 Error: Type mismatch in parameter 'y1axis' at (1). Passing REAL(8) to CHARACTER(1) Which I didn't really investigate... Cheers, Joost
Post Follow-up to this messageJoost wrote: > Hi Madhusudan Singh, > > g95 complains about a long line > > Line 2249 of gnuplot_fortran95.f90 is being truncated > > The line is indeed 133 characters, which is more than the 132 you're > guaranteed to have. > > fixing that, the module compiles fine. > > However: g95 -c gnuplot_fortran95_testbench.f90 > In file gnuplot_fortran95_testbench.f90:140 > > > status=gnuplot_plot2d(ptr_gctrl,numpoint s,x,y1,'sin(x)',y2,'cos(x)',y3, > 1 > Error: Type mismatch in parameter 'y1axis' at (1). Passing REAL(8) to > CHARACTER(1) > > Which I didn't really investigate... > > Cheers, > > Joost Thanks !! The reason for the above is that I have not yet created an updated testbench code for the new version of the library. As I stated in the CHANGES file, it is the code using gnuplot_plot2d that is being impacted. And I will fix the other problem shortly, in addition to adding two "super-canned" routines to the library that create a panel of plots in one shot instead of requiring that the user set all the gnuplot parameters, declare pointers etc. I found out how painful the latter process was when I recently used the library for a new code I had written.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.