help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with legend and color output


From: John W. Eaton
Subject: Help with legend and color output
Date: Mon, 22 Sep 1997 13:27:41 -0500

On 22-Sep-1997, Steven N Harp <address@hidden> wrote:

| I am using Octave 2.0.5 on a Solaris 2.5 machine and producing my
| plots with gnuplot, using Matlab syntax. Can I change the names in the
| legend, for example line 1 to whatever I want from with Octave,
| possibly as either the variable I am plotting name or a argument in
| the call to the plotting function?

You can do this in 2.0.9:

  * It is now possible to specify a label for lines in the plot key
    when using the plot function.  For example,

      plot (x, y, "-*;sin(x);")

    plots y vs. x using the linespoints style and sets the title of
    the line in the key to be `sin(x)'

| Currently I am saving the
| postscript file and then editing it to change the labels in the
| legend. I have also noticed that when I direct the output to a ps file
| and then view or print it , it is displayed as a black and white file,
| not a color one. Do I need to save it in a manner other than
| 
| gset terminal postscript;
| gset output "temp.ps"

To tell gnuplot's postscript terminal driver to use color, try

  gset terminal postscript color

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]