Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3759

Re: pdfcairo/pngcairo file size limitations?

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: pdfcairo/pngcairo file size limitations?
Date Thu, 28 Sep 2017 22:47:00 +0200
Organization solani.org
Lines 36
Message-ID <oqjn5i$n95$1@solani.org> (permalink)
References <413dce00-720f-411e-b421-007fc459f1dd@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1506631666 23845 eJwFwYEBgDAIA7CXZNAi52AH/59gAqdRGQQDi1V7zXg+UH2st2LTpZvgGcZt2cT0mTQCzR8j2BFF (28 Sep 2017 20:47:46 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 28 Sep 2017 20:47:46 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
In-Reply-To <413dce00-720f-411e-b421-007fc459f1dd@googlegroups.com>
Cancel-Lock sha1:0fPVYswNhZoDzUGscjvEAYbRuA0=
X-User-ID eJwNyMERACEIA8CWBBM4y0Em9F/C+dtZ7rDoRDDA4eB8zzXyW2ccuAK3366BVr5MWS90im3yHyOLEY0=
Content-Language de-DE-1901
X-NNTP-Posting-Host eJwFwQkBACAIBLBKgMcXB1D6R3DTY2zjMDXo6gpJnKdR9gRJPevTXAKyq/mcENkB7BDycn0MwxCh
Xref csiph.com comp.graphics.apps.gnuplot:3759

Show key headers only | View raw


Am 28.09.2017 um 15:07 schrieb schwarz.cd48@gmail.com:
> gnuplot version 5.0 patchlevel 0

> I am trying to make a matrix plot of a file that is made up of 48 columns and 50000 lines. Each column contains integers between 0 - 140. I also want to produce a pdf in the end. The script for the plot looks like 

>     plot 'data.file' u 1:2:3 matrix wi image
> 
> The problem is that in the output.pdf the plot area/canvas is empty and only the xtics, ytics, and cbtics are shown. If I open gnuplot in the terminal and just do the plot in the standard qt terminal I will see the plot normally as expected, but it won't be produced in the pdf. The same goes for the pngcairo terminal. On the other hand, if I use 
> 
>     set terminal postscript eps enhanced
> 
> then the output.eps will contain the plot with no problems and I can convert eps to pdf.
> 
> But why does the pdfcairo/pngcairo not work?
> 
> I also found that if I reduce the number of lines in my 'data.file' from 50000 to 30000 (cutting off 2/5 of my data), then I will get a normal plot in my output.pdf. If I increase it again to 40000, the canvas will again be empty again. Does pdfcairo have some limitations here?


Yes, there is a problem. The following script produces a dataset
like yours and works on qt and windows terminal, crashes wxt, and
leaves an empty canvas with pdfcairo. (Tested on gp5.2pl0)


t=time(0)
n=40000
m=48
set print $dat;do for [i=1:n] {
  s=""
  do for [j=1:m] {s=s.sprintf(" %.2f",rand(0.))}
  if (i%1000==0) {set print; print i." of ".n;set print $dat append}
  print s}
set print
print time(0)-t

plot $dat us 1:2:3 matrix w image

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

pdfcairo/pngcairo file size limitations? schwarz.cd48@gmail.com - 2017-09-28 06:07 -0700
  Re: pdfcairo/pngcairo file size limitations? Karl Ratzsch <mail.kfr@gmx.net> - 2017-09-28 22:47 +0200
    Re: pdfcairo/pngcairo file size limitations? schwarz.cd48@gmail.com - 2017-09-29 02:18 -0700
    Re: pdfcairo/pngcairo file size limitations? Ethan A Merritt <EAMerritt@gmail.com> - 2017-10-02 09:18 -0700
      Re: pdfcairo/pngcairo file size limitations? Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-10-02 11:44 -0700
        Re: pdfcairo/pngcairo file size limitations? Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-10-02 13:52 -0700

csiph-web