Help with legend and color output

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with legend and color output

Steven N. Harp
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? 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"


?


Thanks


Steve


Reply | Threaded
Open this post in threaded view
|

Help with legend and color output

John W. Eaton-6
On 22-Sep-1997, Steven N Harp <[hidden email]> 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