Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resetting xtics ytics gnuplot

Tags:

gnuplot

Is there any way to reset or to use the default settings for xtics (or ytics) after I've already used a custom setting?

I need something like that:

set ytics 0.005 nomirror
set y2tics 5 nomirror
plot 'dummy' u 1:2 axes x1y1, dummy2 u 1:2 axes x1y2

##Another plot with "normal" axes
set ytics default (this command doesn't exist but this is what I need)
set y2tics default
plot 'dummy3' u 1:2

So if that command would actually exist, that would solve my problem because what I have now is that the second plot is using, of course, the ytics defined for the previous one. And I don't want to use the reset option because I don't want to define everything again in my script.

Thank you very much!

like image 995
Nikko Avatar asked Nov 16 '16 14:11

Nikko


1 Answers

You could put reset before your second plot. But it will reset everything and might be an overkill for you.

You can also use set ytics auto. It might be better.

Best,

like image 159
RoBo Avatar answered Sep 26 '22 05:09

RoBo