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


Groups > comp.graphics.apps.gnuplot > #3880 > unrolled thread

GNUPLOT

Started byrehman.techgeophy@gmail.com
First post2018-02-19 23:43 -0800
Last post2018-02-20 17:09 +0100
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  GNUPLOT rehman.techgeophy@gmail.com - 2018-02-19 23:43 -0800
    Re: GNUPLOT Karl Ratzsch <mail.kfr@gmx.net> - 2018-02-20 10:20 +0100
    Re: GNUPLOT rehman.techgeophy@gmail.com - 2018-02-20 03:27 -0800
      Re: GNUPLOT Karl Ratzsch <mail.kfr@gmx.net> - 2018-02-20 17:09 +0100

#3880 — GNUPLOT

Fromrehman.techgeophy@gmail.com
Date2018-02-19 23:43 -0800
SubjectGNUPLOT
Message-ID<34106976-d0c3-4150-ab26-ed1a989f8e99@googlegroups.com>
Hello,
I want to plot a 1D depth model in gnuplot, For this X-axis is same(horizontal) but the Y-axis should indicate depth ie,. Y axis should be below the X-axis. How to plot it, please Help me

[toc] | [next] | [standalone]


#3881

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2018-02-20 10:20 +0100
Message-ID<p6gp9n$79p$1@solani.org>
In reply to#3880
Am 20.02.2018 um 08:43 schrieb rehman.techgeophy@gmail.com:
> Hello,
> I want to plot a 1D depth model in gnuplot, For this X-axis is same(horizontal) but the Y-axis should indicate depth ie,. Y axis should be below the X-axis. How to plot it, please Help me
> 

That's unfortunately not directly possible (i.e. by a single command
that could look like "set yaxis at graph 0"), but there are ways to get
what you want.

My favourite is the second answer in

https://stackoverflow.com/questions/12749661/how-to-move-axes-to-center-of-chart

which looks a bit weird at first glance but is really ingenious imo.

  Karl

[toc] | [prev] | [next] | [standalone]


#3882

Fromrehman.techgeophy@gmail.com
Date2018-02-20 03:27 -0800
Message-ID<f22e87a9-257e-4281-9d13-b0a73c745850@googlegroups.com>
In reply to#3880
so far I did.

set xtics format ""
set x2tics
set yrange [250:0] reverse;
plot "plot1" axes x2y1 with lines

able to get plot, Now i want to reduce unit distance between two values on either axis, so that my plot look less deviated 

[toc] | [prev] | [next] | [standalone]


#3883

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2018-02-20 17:09 +0100
Message-ID<p6hh8m$n90$1@solani.org>
In reply to#3882
Am 20.02.2018 um 12:27 schrieb rehman.techgeophy@gmail.com:
> so far I did.
> 
> set xtics format ""
> set x2tics
> set yrange [250:0] reverse;
> plot "plot1" axes x2y1 with lines
> 
> able to get plot, Now i want to reduce unit distance between two values on either axis, so that my plot look less deviated 
> 

"deviated"? Not clear what you mean, but does this look like what you want?

==========
unset xtics # remove xtics completely, otherwise you still get the tics
set x2tics 1.0   # labeled x2tic every 1.0 units
set ytics 25.0   # resp. 25.0 units

# "reverse" only has an effect on autoscaled axes since gp 5.0
#set yrange [250:0]
set yrange [*:*] reverse # i.e. this might me more useful

plot (sin(x)+1)*125 axes x2y1
============

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web