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


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

Re: plotting an adaptive mesh

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plotting an adaptive mesh
Date 2017-01-17 11:18 +0100
Organization solani.org
Message-ID <o5kr2b$ct0$1@solani.org> (permalink)
References <b72ec22a-2510-4fe9-ac7f-ffd25801b221@googlegroups.com>

Show all headers | View raw


Am 17.01.2017 um 10:54 schrieb maierd83@gmail.com:
> Hello,
> 
> I am doing some calculations on the basis of an adaptive mesh. So, my data look like:
> 
> |----|----|---------|---------|
> |  1 | 6  |         |         |
> |----|----|    4    |    9    |
> |  2 | 9  |         |         |
> |----|----|----|----|---------|
> |         |  1 | 8  |         |
> |    5    |----|----|    2    |
> |         |  8 | 5  |         |
> |---------|----|----|----|----|
> |         |         |  8 | 2  |
> |    1    |    4    |----|----|
> |         |         |  3 | 7  |
> |---------|---------|----|----|
> 
> I want to plot these data with an 2D heat map.
> 
> To do so, I am expanding the fine pitched mesh to the hole data set 
> and used "plot "data.dat" with image pixels".
> 
> This works, but it generates big data set (30MB) and also a big image (my used output is svg -> ~60MB) and is against the idea of an adaptive mesh.
> 

For a bitmap, you should use a bitmap output (e.g. png). A vector
graphic that consists of single pixels is simply a large waste of disk
space.

As for the plotting, "set dgrid3d" will not lead to exactly the same
result as filling each larger mesh with the same value, but perhaps
it'll suit your needs. Try out the different kernels.

Otherwise, you might write a program that expands the dataset (i.e.
fills out the larger meshes) online, and pipe the output into gnuplot.

  plot '< expand dataset.dat' with image

That way you don't have those large, redundant files lying around.

  Karl

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


Thread

plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 01:54 -0800
  Re: plotting an adaptive mesh Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 11:18 +0100
    Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 04:49 -0800
      Re: plotting an adaptive mesh Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 14:11 +0100
        Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 06:05 -0800
          Re: plotting an adaptive mesh Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 15:25 +0100
            Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 07:25 -0800
              svg with bitmap image graph? (was: Re: plotting an adaptive mesh) Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 21:36 +0100
                Re: svg with bitmap image graph? (was: Re: plotting an adaptive mesh) Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-01-17 14:41 -0800
  Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 06:07 -0800

csiph-web