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


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

Re: Why does plotting with point labels make plot generation extremely slow?

From Hans-Bernhard Bröker <HBBroeker@t-online.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Why does plotting with point labels make plot generation extremely slow?
Date 2019-04-28 19:11 +0200
Message-ID <gim56eFmmliU1@mid.dfncis.de> (permalink)
References <0d17edd5-6246-4f25-8edd-df15a0832de8@googlegroups.com>

Show all headers | View raw


Am 28.04.2019 um 11:36 schrieb 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.

The "hypertext" aspect is a red herring.  You're comparing the default
plot style ("with points") with one that has to store and output a
string per input point ("with labels").

Actually the test case can be simplified to

	set samples 1000000 # change to see the differences
	plot "+" u 1:1:1 w labels

Well, jumping all the way up to a million (intended) clickable links in
your output is soewhat excessive.

But a bit of experimentation with smaller tests reveals quickly what
kind of problem this is: the run time usage grows with the square of the
number of data points.  That's because of the choice of data structure
for the labels.

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


Thread

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