Menu

#1406 gnuplot ignores set {x,y,}tics font "font, <fontsize>" in epslatex term

closed-invalid
nobody
2
2015-03-23
2014-05-21
Judge_Dredd
No

Description:
In epslatex terminal tic label font size can't be changed.
Steps to reproduce:
Run the following script with different font sizes.

####### cut

set terminal epslatex
set output "out.tex"
set title "t4"
set tics font "helvetica,20"
plot sin(x)

###### cut

expected behavior:
font size must change on the plot when changing font size on the line
set {x,y,}tics font "helvetica,20"
Is it a bug/feature/just me?

Discussion

  • Judge_Dredd

    Judge_Dredd - 2014-05-21

    gnuplot 4.6 patchlevel 3 (Gentoo revision r0)
    Gentoo Linux

     
  • Ethan Merritt

    Ethan Merritt - 2014-05-21

    It's just you.

    The whole point of using one of the latex terminals is that the text and font handling is left to latex. Gnuplot provides the graphics part, as an *.eps file in this case, but latex provides the fonts and text processing.

    The only effect of specifying a font size in this situation is to give gnuplot a hint that it needs to leave more space for the tic labels. But even with the hint, gnuplot can only make a rough guess at what latex will actually do when in chooses a font and processes the document.

     
  • Ethan Merritt

    Ethan Merritt - 2014-05-21
    • status: open --> open-invalid
     
  • Judge_Dredd

    Judge_Dredd - 2014-05-21

    so I'll have to edit gnuplot output file

     
    • Christoph Bersch

      No, you can use something like

      set tics format '\small $%h$'
      

      or similar.

       
  • Ethan Merritt

    Ethan Merritt - 2014-05-27
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB