Path: csiph.com!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: how to transform x axis in to nano sec rather then number of frame Date: Wed, 10 Jan 2018 15:50:32 +0100 Organization: solani.org Lines: 29 Message-ID: References: <9aa67749-cb33-4ce0-9034-11a1b53b8f4d@googlegroups.com> <5dfaad40-5825-405b-af9d-5f49a3f6b65f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1515595832 29015 eJwFwQkBwDAIA0BL4y9yCmn8S9hdWEpueUZ6MLhtMZI+e6Z0eV+zBnaf4pRUQdFM1fcRRvwvYRH/ (10 Jan 2018 14:50:32 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 10 Jan 2018 14:50:32 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 X-NNTP-Posting-Host: eJwNyMERACEIA8CWQEmcK4eA9F+Ct8/FprNOEAwMhgpo/vp0tV05tlZ0+gWNlaiZPrBuSQAeMRESCg== Content-Language: de-DE-1901 Cancel-Lock: sha1:8Xsm+Pc8+D4yP+8PHLKgRW9Xido= X-User-ID: eJwFwYEBwDAEBMCVFI+Mk+D3H6F3sPii0wPhIKh3tWvXxQ+eCCohvKNio9bj5MNJmaiaZPwZ+xEH In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:3856 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.