bugGNU Octave - Bugs: bug #44418, Qt/FLTK gl2ps EPS printing doesn't...

 
 

bug #44418: Qt/FLTK gl2ps EPS printing doesn't scale and orient image correctly.

Submitted by:  Dan Sebald <sebald>
Submitted on:  Tue 03 Mar 2015 09:45:48 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 04 Mar 2015 08:24:52 PM UTC, comment #7:

Is it that far back already? I haven't upgraded since then because that's when Gnome switched over to 3.0.

I built 1.3.8 gl2ps without many problems (unlike OSMesa).

The one problem is that with these default install directories:

(and I uninstalled my old gl2ps version, which basically was /usr/include/gl2ps.h and /usr/lib64/libgl2ps.so) Octave is able to recognize /usr/local/include/gl2ps.h at configure time and build with that gl2ps.h, but at run time Octave can't find the library file:

I just created a link into the lib64 library directory and things were fine afterward.

Version check? Eh, on second thought it would end up being cruft. On the other hand, it might be nice to have a list of "won't be fixed" bugs associated with the Octave webpage, specifically in the "report a bug" section. That list would be static and really wouldn't need to be maintained other than adding to the end of the list, something like

Dan Sebald <sebald>
Wed 04 Mar 2015 04:20:58 PM UTC, comment #6:

I'm going to vote to just let this go. gl2ps v1.3.6 appears to have been made on 8/14/2011 or 3.5 years ago. All distributions which will be compiling the new Octave 4.0 will be using an up-to-date version of gl2ps. If someone is using a very old stable release, such as Red Hat Enterprise Linux, then I think we can make the user responsible for getting modern versions of libraries. If you want to code a warning at configure time I think that would be an okay thing too, I just don't feel the need myself.

Rik <rik5>
Project Administrator
Wed 04 Mar 2015 05:55:35 AM UTC, comment #5:

Here is the important difference between the two EPS files:

It's a bug in gl2ps. gl2ps 1.3.5 and 1.3.6 are in sourcecodebrowser and I verified the error. A scaling by zoom_<dir> was missing.

I guess the options are:

1) Require gl2ps 1.3.6 or greater during configure process. (Check for GL2PS_MAJOR_VERSION, GL2PS_MINOR_VERSION and GL2PS_PATCH_VERSION)

2) Issue a first-time-after-startup print warning for images if the gl2ps version is less than 1.3.6. E.g., "Warning, upgrade GL2PS to Version 1.3.6 for correct image printing." The user will still be able to plot other things.

3) Let it go.

I'm fine with any of those. Right now I prefer for gnuplot printing anyway.

Dan Sebald <sebald>
Wed 04 Mar 2015 04:42:06 AM UTC, comment #4:

Works for me. See the attached file imagetest.working.eps. This was made with gl2ps v1.3.6-1.

(file #33241)

Rik <rik5>
Project Administrator
Wed 04 Mar 2015 12:49:41 AM UTC, comment #3:

Actually, the version of gl2ps might be the most important. I have 1.3.5-1.

Dan Sebald <sebald>
Tue 03 Mar 2015 11:21:48 PM UTC, comment #2:

Post the EPS file, please...

Dan Sebald <sebald>
Tue 03 Mar 2015 10:47:16 PM UTC, comment #1:

The resulting plot is fine for me. This is with ghostscript 9.05 and

Rik <rik5>
Project Administrator
Tue 03 Mar 2015 09:45:48 PM UTC, original submission:

Images aren't placed in PostScript file correctly. From these commands:

I get the resulting attached EPS file. Note that the image is not scale properly and the coordinate system may not be correct. The plot coordinate system for images may be top/left-to-bottom/right, the included image looks to assume the Cartesian coordinate system, i.e., bottom/left-to-top-right.

Dan Sebald <sebald>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #33241:  imagetest.working.eps added by rik5 (6KiB - application/postscript)
file #33237:  imagetest.eps added by sebald (6KiB - application/postscript)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by sebald (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Mar 2015 04:20:58 PM UTCrik5StatusWorks For Me=>Wont Fix
      Open/ClosedOpen=>Closed
    Wed 04 Mar 2015 04:42:06 AM UTCrik5Attached File-=>Added imagetest.working.eps, #33241
    Tue 03 Mar 2015 10:47:16 PM UTCrik5StatusNone=>Works For Me
    Tue 03 Mar 2015 09:45:48 PM UTCsebaldAttached File-=>Added imagetest.eps, #33237

    Back to the top


    Powered by Savane 3.1-cleanup1