Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4186
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2019-04-28 02:36 -0700 |
| Message-ID | <0d17edd5-6246-4f25-8edd-df15a0832de8@googlegroups.com> (permalink) |
| Subject | Why does plotting with point labels make plot generation extremely slow? |
| From | ciro.santilli@gmail.com |
This made me curious, since I wouldn't intuitively expect that just adding point labels would add so much overhead.
In particular if the point labels are hypertext, in which case they don't even show and no placement calculation needs to be done for them.
Generate test data with 1 million lines:
i=0; while (( $i < 1000000 )); do echo "$i $i $i"; i=$((i + 1)); done > 1m.dat
and here are all the tests that I've tried:
#!/usr/bin/env gnuplot
#set terminal png size 1024,1024
#set output "gnuplot.png"
set terminal canvas mousing
set output "gnuplot.html"
#set terminal wxt size 1024,768
#plot "1m.dat" using 1:2
plot "1m.dat" using 1:2:3 with labels hypertext
With all terminal types, the command without "with labels hypertext" works and finishes quickly.
But if I add "with labels hypertext" however, all commands take more than one hour, and I've lost patience to wait for them to finish.
The same goes if I remove "hypertext".
Tested in gnuplot 5.2 patchlevel 2, Ubuntu 18.10.
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Why does plotting with point labels make plot generation extremely slow? ciro.santilli@gmail.com - 2019-04-28 02:36 -0700
Re: Why does plotting with point labels make plot generation extremely slow? Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2019-04-28 19:11 +0200
Re: Why does plotting with point labels make plot generation extremely slow? Ethan Merritt <eamerritt@gmail.com> - 2019-04-29 06:52 +0000
Re: Why does plotting with point labels make plot generation extremely slow? ciro.santilli@gmail.com - 2019-04-29 01:01 -0700
Re: Why does plotting with point labels make plot generation extremely slow? Ethan Merritt <eamerritt@gmail.com> - 2019-04-30 01:49 +0000
Re: Why does plotting with point labels make plot generation extremely slow? ciro.santilli@gmail.com - 2019-04-30 01:17 -0700
Re: Why does plotting with point labels make plot generation extremely slow? Ethan Merritt <sfeam@users.sf.net> - 2019-04-30 19:06 +0000
Re: Why does plotting with point labels make plot generation extremely slow? ciro.santilli@gmail.com - 2019-04-30 14:26 -0700
csiph-web