I cant get proper format axis, I get the following code to gnuplot in my tex project:

set yrange [0:1]            
set mytics 5
set ytics 0,.5,1

And I get this:

enter image description here

but however when I tag tics on this way:

set yrange [0:1]            
set mytics 5
set ytics ("0.0"0,"0.5".5,"1.0"1)

mtics divisions disappear and I would like to preserve them:

enter image description here

Is there anyway to format axis labels in gnuplottex?


Gnuplottex doesn't format anything itself; all the formatting is done by gnuplot. You can find information on how to format labls with gnuplot here.

  • Yes, what I wanted was specifically set format y '%.1t'; set ytics 0,.5,1 but thank you so much for your help. – JFernan Aug 23 '16 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.