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


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

Re: how to transform x axis in to nano sec rather then number of frame

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: how to transform x axis in to nano sec rather then number of frame
Date 2018-01-10 15:50 +0100
Organization solani.org
Message-ID <p3597o$san$1@solani.org> (permalink)
References <9aa67749-cb33-4ce0-9034-11a1b53b8f4d@googlegroups.com> <5dfaad40-5825-405b-af9d-5f49a3f6b65f@googlegroups.com> <p32v7a$bvj$1@solani.org> <b9007197-b01a-4c41-b488-5d93e47f29a5@googlegroups.com>

Show all headers | View raw


Am 10.01.2018 um 12:54 schrieb Rana Rehan Khalid:

> plot "hhhh.gnu" u ($1*0.0002):($2):($3)
> splot "-" with pm3d title "hhhh.gnu"

> but gives """"hhhh.gnu", line 8: Too many using specs for this style"""

This has nothing to do with the original question, right?

OK, having those two lines one after another in one script makes little
sense, no sense at all for testing. Even without an error, you won't see
the first plot, because it is immediately replaced by the second (s)plot.

GENERAL RULE: ONE "plot" or "splot" command at a time (there are
exceptions, but nevermind), and all settings are only taken into account
for the _next_ plot.

Also "(s)plot" expects a data file (or function) as input, not a gnuplot
script like "hhhh.gnu", so this will not make a graph. You can run one
script file inside another via the "load" command.

And finally (and fatally, for the given case) a simple "plot" command
can only use two columns (x and y values, as specified after "u", short
for "using"), hence the error. More columns can be used for errorbars,
colour etc., see the documentation on "plot".

TIP: just start gnuplot on the command line or from the windows start
menu ("wgnuplot.exe"), type "plot x", and then try to set ranges, labels
etc, each time followed by "replot". You'll get the hang of it.

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


Thread

how to transform x axis in to nano sec rather then number of frame Rana Rehan Khalid <ray.binm@gmail.com> - 2018-01-07 10:01 -0800
  Re: how to transform x axis in to nano sec rather then number of frame Karl Ratzsch <mail.kfr@gmx.net> - 2018-01-08 14:54 +0100
  Re: how to transform x axis in to nano sec rather then number of frame Rana Rehan Khalid <ray.binm@gmail.com> - 2018-01-09 07:48 -0800
    Re: how to transform x axis in to nano sec rather then number of frame Karl Ratzsch <mail.kfr@gmx.net> - 2018-01-09 18:47 +0100
      Re: how to transform x axis in to nano sec rather then number of frame Rana Rehan Khalid <ray.binm@gmail.com> - 2018-01-10 03:54 -0800
        Re: how to transform x axis in to nano sec rather then number of frame Karl Ratzsch <mail.kfr@gmx.net> - 2018-01-10 15:50 +0100

csiph-web