Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3384
| From | Michael Okuntsov <okuntsov.mikhail@yandex.ru> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Moving x axis |
| Date | 2016-09-04 23:45 +0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <nqhj3c$7jl$1@dont-email.me> (permalink) |
| References | <3a89f54e-551c-4539-b7b1-d8171dedb63c@googlegroups.com> |
04.09.2016 15:23, avalenti9431@gmail.com пишет:
> Hello,
>
> I am trying to move the x axis so it is located at 'y=1' (as opposed to the bottom of te graph). My axis axis comprises strings so I am currently using the command
>
> plot "test3.txt" using 2:xticlabels(1) with linespoints
>
> The only command I have found on the internet is
>
> set arrow from graph 0, first 1 to graph 1, first 1 nohead
>
> But that just draws a line at y=1 and doesnt move the axis labels.
>
> Any help is appreciated
>
>
> Thanks
>
Here is a trick for you: shift the labels on Y axis to 1, as well as
your function (or data).
set xzeroaxis
set ytics ('-3' -4,'-2' -3,'-1' -2,'0' -1,'1' 0,'2' 1,'3' 2)
plot[-3:3] x-1
Here the function y=x goes through [0,0], as intended.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Moving x axis avalenti9431@gmail.com - 2016-09-04 01:23 -0700
Re: Moving x axis Gavin Buxton <gavinbuxton@gmail.com> - 2016-09-04 07:36 -0700
Re: Moving x axis avalenti9431@gmail.com - 2016-09-04 08:25 -0700
Re: Moving x axis Michael Okuntsov <okuntsov.mikhail@yandex.ru> - 2016-09-04 23:45 +0700
Re: Moving x axis Gavin Buxton <gavinbuxton@gmail.com> - 2016-09-04 10:01 -0700
csiph-web