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


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

Re: splotting with pointsize variable => huge points!!!

From gvdmoort <gvdmoort@skynet.be>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: splotting with pointsize variable => huge points!!!
Date 2012-06-07 12:16 -0700
Organization http://groups.google.com
Message-ID <9c18bc7d-aa5b-43f2-9298-4db906885d33@d17g2000vbv.googlegroups.com> (permalink)
References <a132d119-933d-439e-bea9-b074075e25d4@s9g2000vbg.googlegroups.com> <jqopvb$g3e$1@dont-email.me>

Show all headers | View raw


On 7 juin, 01:43, sfeam <sf...@users.sourceforge.net> wrote:

> I am guessing that you really were aiming for a 2D plot?
> In that case the command you want is
>
> gnuplot> plot '-' matrix using 1:2:3 with points pt 7 ps variable
>

Thanks for your reaction. There was some confusion in my 1rst message
because I also tried to plot data from an image to points with
variable size.

This doesn't work:

gnuplot> plot 'grey_small.png' binary filetype=auto using 1:2:($3/255)
with points pt 7 ps variable
         Too many using specs for this style

but I've found a solution by "splotting" the image and export the
result in a table:

gnuplot> splot 'grey_small.png' binary filetype=auto
gnuplot> set table 'grey_small.dat'
gnuplot> replot

And then:

gnuplot> plot 'grey_small.dat' using 1:2:($3/255) with points pt 7 ps
variable

By the way, are the heights given by the value of a pixel always
between 0 and 255, or do they depend on the format of the image
(pixels on 8, 16, 32 bits...) ?

Thanks,

Gauthier

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


Thread

splotting with pointsize variable => huge points!!! gvdmoort <gvdmoort@skynet.be> - 2012-06-06 02:27 -0700
  Re: splotting with pointsize variable => huge points!!! sfeam <sfeam@users.sourceforge.net> - 2012-06-06 16:43 -0700
    Re: splotting with pointsize variable => huge points!!! gvdmoort <gvdmoort@skynet.be> - 2012-06-07 12:16 -0700
      Re: splotting with pointsize variable => huge points!!! sfeam <sfeam@users.sourceforge.net> - 2012-06-07 14:12 -0700
        Re: splotting with pointsize variable => huge points!!! sfeam <sfeam@users.sourceforge.net> - 2012-06-07 14:27 -0700
        Re: splotting with pointsize variable => huge points!!! gvdmoort <gvdmoort@skynet.be> - 2012-06-08 00:10 -0700
        Re: splotting with pointsize variable => huge points!!! gvdmoort <gvdmoort@skynet.be> - 2012-06-08 00:22 -0700

csiph-web