changing order of plots and key entries

  • Marc Bartholomaeus

    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.


    • Marc Bartholomaeus

      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



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks