help-octave
[Top][All Lists]
Advanced

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

change linestyle and pointstyle under gnuplot


From: Stefan Pofahl
Subject: change linestyle and pointstyle under gnuplot
Date: Wed, 06 Dec 2006 21:05:34 +0100
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Hello,

I work under win32 (octave vers.2.1.73)
and I want to change the line width.
I tried:

__gnuplot_set__ style line 2 lt -1 lw 3 pt 3 ps 5.0;

with no succes and I don't know, if I made a mistake,
I thing that the line above should change linewith
from 1 to 3 on the second line, but it is not working :-(

Here is my workaround.

Perhaps there is a more elegant method.

Kindest Regards,

Stefan

***************************************************************

function plot_enhanced()
  befehl= "reset";
  __gnuplot_raw__ (befehl);
  clg
  __gnuplot_set__ style line 1 with line lt 1 lw 6 pt 3 ps 1.0;
  __gnuplot_set__ style line 2 with points lt 2 lw 4 pt 1 ps 0.5;
  __gnuplot_set__ style line 3 with points lt 3 lw 6 pt 3 ps 4.0;
  x=[0:0.1:3]';
  __gnuplot_set__ output; # important to prepare for next plot
  __gnuplot_set__ terminal postscript enhanced colour
  __gnuplot_set__ output "octave_command.eps"
  plot(x, cos(x), x, sin(x), x, 0.5*cos(x));
  __gnuplot_set__ output; # close output file
  # --------------------------------------------------------------------
  __gnuplot_set__ terminal windows
  clg
  befehl=["plot[0:3]cos(x) with line lt 1 lw 6 pt 3 ps 1.0,", ...
          " sin(x) with points lt 2 lw 4 pt 1 ps 0.5,", ...
          " 0.5*cos(x) with points lt 3 lw 6 pt 3 ps 4.0"];
  __gnuplot_raw__ (befehl);
  __gnuplot_set__ output; # important to prepare for next plot
  __gnuplot_set__ terminal postscript enhanced colour
  __gnuplot_set__ output "low_level_command.eps"
  __gnuplot_raw__ (befehl);
  # replot is not working, we took the low level command __gnuplot_raw__
  __gnuplot_set__ output
  __gnuplot_set__ terminal windows
  __gnuplot_set__ output
  replot
endfunction





reply via email to

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