help-octave
[Top][All Lists]
Advanced

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

Re: octave w/ gnuplot backend produces bad pdf


From: Daniel J Sebald
Subject: Re: octave w/ gnuplot backend produces bad pdf
Date: Tue, 31 May 2016 16:35:03 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

My observations after modifying some lines of your .gp file:

1) The pngcairo terminal appears to work with your example. I see a black line for all segments and the colorbox is all black. This is how it appears in the PNG file and Qt terminal.

2) The attached modification "fixes" the pdfcairo view problems. What I did was add more levels to the colorbox so that grey and white are visible. I then see one segment of the line in black and another segment of the line in white. This is how it appears in the PDF file and Qt terminal.

So, it appears that there is either a Cairo bug or something is wrong in gnuplot (probably colorbar) when the number of color levels is 1.

Dan


On 05/31/2016 03:03 PM, Dmitri A. Sergatskov wrote:
The following octave scrip produces a bad pdf
(similar to one in https://bugzilla.redhat.com/show_bug.cgi?id=1340660 )

graphics_toolkit ("gnuplot")
x=linspace(-1,1,11);
y=0;
z=x;
mesh(x,y,z);
colormap([0,0,0]);
print("bad_pdf.pdf", "-dpdfcairo")

====

A gnuplot script tat demonstrates the problem is attached (it contains
binary data).

Both firefox and chrome would render pdf anyway, but evince/xpdf/okular
would not.

I suspect the problem with octave's
colormap([0,0,0])
command here.
But I also think that gnuplot should not produce bad pdf.

Dmitri.
--





------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e



_______________________________________________
gnuplot-beta mailing list
address@hidden
Membership management via: 
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta


--

Dan Sebald
email: daniel(DOT)sebald(AT)ieee(DOT)org
URL: http://www(DOT)dansebald(DOT)com

Attachment: bad_gp_mod.gp
Description: application/gnuplot


reply via email to

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