Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Directly specify xtics to plot Date: Mon, 28 Aug 2017 15:11:25 -0700 Organization: gnuplot development Lines: 28 Message-ID: References: <75e880b2-889d-4891-af43-dc6e17ba9e20@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Mon, 28 Aug 2017 22:07:05 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="6516a1a486cf1d32f7bc91985dfb8907"; logging-data="5287"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180KqCnJ+zeBYXR4vHK5Sdy" User-Agent: KNode/4.14.5 Cancel-Lock: sha1:pvKsDsaChnOE6aF5c3HP6bviG4c= Xref: csiph.com comp.graphics.apps.gnuplot:3737 adhysatya820@gmail.com wrote: > Hi, > > In my script, I am defining the xtics as follows: > > set xrange [0:1] > set xtics ("50-Nodes" 0, "90-Nodes" 1) > > Then, I want to plot one dataset on "0" and the other at position "1". So > far I'm doing this: > > plot './df-1.csv' u 1:3:4:5 w yerrorbars lt rgb 'red' ti '50-Nodes', \ > './df-2.csv' u 1:3:4:5 w yerrorbars lt rgb 'blue' ti '90-Nodes' > > But both lines are on top of the 50-Nodes xtic. > > How do I move the second plot to the second xtic? I guess all your x values are between 0 and 1? Otherwise the plot commands make no sense. Try plot './df-1.csv' u 1:3:4:5 w yerrorbars lt rgb 'red' ti '50-Nodes', \ './df-2.csv' u ($1+1.0):3:4:5 w yerrorbars lt rgb 'blue' ti '90-Nodes'