Pratronn
Pratronn

Reputation: 103

Custom xtics in gnuplot

Trying to do a function plot in gnuplot. How can one add custom xtics to it? The x-axis tics starts from "0 6 12 18 24" based on the function plotted. I want them to be "6 12 18 24 6". Is it possible?

Upvotes: 10

Views: 12355

Answers (1)

Miguel
Miguel

Reputation: 7627

Yes:

set xtics ("6" 0, "12" 6, "18" 12, "24" 18, "6" 24)

Upvotes: 18

Related Questions