Path: csiph.com!2.eu.feeder.erje.net!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 Newsgroups: comp.graphics.apps.gnuplot Subject: Re: plotting an adaptive mesh Date: Tue, 17 Jan 2017 14:11:16 +0100 Organization: solani.org Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1484658677 20944 eJwFwYEBwCAIA7CXmNIC5wy0/59ggs2PE07QISj4N3ity7QGOH1PaJnCnaO0OinclcA2VD4lBhDr (17 Jan 2017 13:11:17 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 17 Jan 2017 13:11:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 X-NNTP-Posting-Host: eJwFwYERAEEEBLCWGJZXDs72X8InsNDY9EA4CFJNY/aO1p4rta99UrhX+p0pBa/I6eYY7gc4RRJ7 In-Reply-To: X-User-ID: eJwVxMERACEIBLCWUNkFygGR/ku4uTyCw8VrSlAxGAZds4ItuQp/I7b3m7TpFj83AJpUiPp+HxkqENE= Cancel-Lock: sha1:jrAVHdUmD1BWU8koQynWUrBww1o= Xref: csiph.com comp.graphics.apps.gnuplot:3533 Am 17.01.2017 um 13:49 schrieb maierd83@gmail.com: > My idea is to minimize the size of the data file and the image file. Furthermore, I want to reduce the calculation time of my program. At the moment the expanding of the adaptive mesh to a regular mesh takes longer than the calculation of the adaptive mesh data. svg is the _wrong_ format to plot a bitmap. It takes up 30 or 40 bytes _for every pixel_! Use jpeg or png. This will already speed up the task. > So, I want definitely get rid of the idea of expansion. > > 3) Plot each data point as a rectangle with the fillcolor equal to the > color defined according to the color palette > > The finer pitched data points (smaller rectangles) shall then be plotted on top of the bigger rectangles. I don't think you use "set object" to print hundreds of thousands of rectangles. I have no idea how to make gnuplot do that, except by writing an additional program that translates your dataset into a gnuplot script, and either way it will be horribly slow. With huge datasets, the parsing of text data can be quite slow. Can you output the expanded dataset in a binary (bitmap) format? How big (width in x and y) is your dataset, anyway? > set terminal svg size 800,600 see above.