Menu

How to change the font size in the key

Help
Laura
2005-07-21
2013-02-10
  • Laura

    Laura - 2005-07-21

    I can't seem to find a way to change the size of the font in my key.  The key's font is the same size as the font of the x and y labels, but I want it to be smaller.  I'm using set terminal postscript eps enhanced color and the key is set to top right outside reverse enhanced samplen 2. 

    Is there a simple way shrink the key's font, without having to edit the eps files?

     
    • Hans-Bernhard Broeker

      The font and size of the key text is defined by the default of the terminal driver.  The PostScript driver has an option to change that at "set term" time.  This changes the size of all other text plot elements that don't have their own font/size specification, though.

      For "enhanced" mode, you can instead change the font on the spot.  See "help enhanced".

       
      • Laura

        Laura - 2005-07-21

        After the "set terminal poscript" command, I have sucessfully managed to independently change the font of the xlabels, ylabels, xtics, ytics, and title.  However, "set key font" command does not exist.  How exactly do I change the key font in the postscript terminal?  I have tried looking at "help enhanced" but that didn't tell me what I needed to know.

        Thanks

         
        • Hans-Bernhard Broeker

          I already told you: the key font is whatever you specified as the font directly in 'set term postscript'.

          I have no idea how 'help enhanced' could fail to teach you how to change font and size from inside any string output by gnuplot.  It even has examples doing exactly that!

           
    • Laura

      Laura - 2005-07-25

      Ok, I understand now that you have to type {/*0.75 text} if you want your text to be 75% of it original size.  I just thought that there would be a simpler way to change the size of the font's key rather than going though and putting {/*75 text} for each one of my individual titles.  There should be a set key font command.

      My next problem is that I want to make the font of the key smaller in a histogram, using autotitles.  How would I do that? 

       
    • Laura

      Laura - 2005-07-25

      never mind...I've worked it out

       

Log in to post a comment.