octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mingw Octave 3.4.2 - blank gnuplot printouts


From: Nit Nit
Subject: Re: Mingw Octave 3.4.2 - blank gnuplot printouts
Date: Fri, 9 Sep 2011 20:04:53 +0300

Here is the output:

graphics_toolkit('gnuplot')
plot(fft(eye(37)))
print(gcf,'test.png','-dpng','-debug');
Ghostscript command: 'C:\Octave\Octave3.4.2_gcc4.5.2\gs\gs9.02\bin/gswin32c.exe -dQUIET -dNOPAUSE -dBATCH-dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile=test.png C:\Users\owner\AppData\Local\Temp\oct-3.eps'
gnuplot-pipeline: 'C:\Octave\Octave3.4.2_gcc4.5.2\gs\gs9.02\bin/gswin32c.exe -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile=test.png C:\Users\owner\AppData\Local\Temp\oct-3.eps & del C:\Users\owner\AppData\Local\Temp\oct-3.eps'

I have dbstop in __gnuplot_print__ and catched the oct-3.eps file and it seems to me that it doesn't contain the actual plot information !
This is its content:

%!PS-Adobe-2.0 EPSF-2.0
%%Title: C:\Users\owner\AppData\Local\Temp\oct-3.eps
%%Creator: gnuplot 4.4 patchlevel 3
%%CreationDate: Fri Sep 09 19:59:35 2011
%%DocumentFonts: (atend)
%%BoundingBox: 50 50 626 482
%%EndComments
%%BeginProlog
/gnudict 256 dict def
gnudict begin
%
% The following true/false flags may be edited by hand if desired.
% The unit line width and grayscale image gamma correction may also be changed.
%
/Color false def
/Blacktext false def
/Solid false def
/Dashlength 1 def
/Landscape false def
/Level1 false def
/Rounded false def
/ClipToBoundingBox false def
/TransparentPatterns false def
/gnulinewidth 5.000 def
/userlinewidth gnulinewidth def
/Gamma 1.0 def
%
/vshift -66 def
/dl1 {
  10.0 Dashlength mul mul
  Rounded { currentlinewidth 0.75 mul sub dup 0 le { pop 0.01 } if } if
} def
/dl2 {
  10.0 Dashlength mul mul
  Rounded { currentlinewidth 0.75 mul add } if
} def
/hpt_ 31.5 def
/vpt_ 31.5 def
/hpt hpt_ def
/vpt vpt_ def
Level1 {} {
/SDict 10 dict def
systemdict /pdfmark known not {
  userdict /pdfmark systemdict /cleartomark get put
} if
SDict begin [
  /Title (C:\\Users\\owner\\AppData\\Local\\Temp\\oct-3.eps)
  /Subject (gnuplot plot)
  /Creator (gnuplot 4.4 patchlevel 3)
  /Author (owner)
%  /Producer (gnuplot)
%  /Keywords ()
  /CreationDate (Fri Sep 09 19:59:35 2011)
  /DOCINFO pdfmark
end
} ifelse
/doclip {
  ClipToBoundingBox {
    newpath 50 50 moveto 626 50 lineto 626 482 lineto 50 482 lineto closepath
    clip
  } if
} def
%!PS-Adobe-2.0 EPSF-2.0
%%Title: C:\Users\owner\AppData\Local\Temp\oct-3.eps
%%Creator: gnuplot 4.4 patchlevel 3
%%CreationDate: Fri Sep 09 19:59:36 2011
%%DocumentFonts: (atend)
%%BoundingBox: 50 50 626 482
%%EndComments
%%BeginProlog
/gnudict 256 dict def
gnudict begin
%
% The following true/false flags may be edited by hand if desired.
% The unit line width and grayscale image gamma correction may also be changed.
%
/Color false def
/Blacktext false def
/Solid false def
/Dashlength 1 def
/Landscape false def
/Level1 false def
/Rounded false def
/ClipToBoundingBox false def
/TransparentPatterns false def
/gnulinewidth 5.000 def
/userlinewidth gnulinewidth def
/Gamma 1.0 def
%
/vshift -66 def
/dl1 {
  10.0 Dashlength mul mul
  Rounded { currentlinewidth 0.75 mul sub dup 0 le { pop 0.01 } if } if
} def
/dl2 {
  10.0 Dashlength mul mul
  Rounded { currentlinewidth 0.75 mul add } if
} def
/hpt_ 31.5 def
/vpt_ 31.5 def
/hpt hpt_ def
/vpt vpt_ def
Level1 {} {
/SDict 10 dict def
systemdict /pdfmark known not {
  userdict /pdfmark systemdict /cleartomark get put
} if
SDict begin [
  /Title (C:\\Users\\owner\\AppData\\Local\\Temp\\oct-3.eps)
  /Subject (gnuplot plot)
  /Creator (gnuplot 4.4 patchlevel 3)
  /Author (owner)
%  /Producer (gnuplot)
%  /Keywords ()
  /CreationDate (Fri Sep 09 19:59:36 2011)
  /DOCINFO pdfmark
end
} ifelse
/doclip {
  ClipToBoundingBox {
    newpath 50 50 moveto 626 50 lineto 626 482 lineto 50 482 lineto closepath
    clip
  } if
} def



On Fri, Sep 9, 2011 at 4:50 PM, Ben Abbott <address@hidden> wrote:

On Sep 9, 2011, at 9:38 AM, Nit Nit wrote:

> Hello Tatsuro and other octave maintainers,
>
> With your mingw build of octave-3.4.2 + gnuplot when using graphics_toolkit('gnuplot') - printing a figure (with 'print') always produce a blank page.
> This happens with my installation tree (as can be downloaded with mingw octave 3.4.2 links in your wiki http://wiki.octave.org/wiki.pl?OctaveForWindows).
>
> For graphics_toolkit('fltk') printing is ok !
>
> With previous mingw build of octave 3.2.4 with graphics_toolkit('gnuplot'), printed figures are ok.
>
> Are you also facing this problem ? Do you have any idea what may cause it ?
>
> Regards,
>
> Nitzan

You can add "-debug" to the print command. That will display some detail as to what is being done.

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]