changing order of plots and key entries

Help
2003-01-08
2003-01-08
  • how can i change the order of the key/legend entries?

    the most important line should be plotted at last. thats why i move the line to the end of the plot-command. but now it is also the last in the key. (but it should be the first!)

    can i change that? i haven't found any option for that.

    thanks...

     
    • Ethan A Merritt helped me in the newsgroup:
      ---------------------------------------------------
      A future gnuplot version will support the command 'set key invert',
      but for now the best I can suggest is a work around:

      plot 'most_important' ... lt 1 title "I'm very important", \
      'next_plot' .... lt 2 title "next plot", \
      ...
      'most_important' ... lt 1 notitle

      Plot it both first and last, but only use a title the first time.
      --
      Ethan A Merritt
      ---------------------------------------------------

      thanks...