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


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

Re: Directly specify xtics to plot

From Ethan A Merritt <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Directly specify xtics to plot
Date 2017-08-28 15:11 -0700
Organization gnuplot development
Message-ID <oo2468$557$1@dont-email.me> (permalink)
References <75e880b2-889d-4891-af43-dc6e17ba9e20@googlegroups.com>

Show all headers | View raw


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'


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


Thread

Directly specify xtics to plot adhysatya820@gmail.com - 2017-08-28 13:08 -0700
  Re: Directly specify xtics to plot Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-08-28 15:11 -0700

csiph-web