help-octave
[Top][All Lists]
Advanced

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

Re: Plot command crashes Octave


From: Dmitri A. Sergatskov
Subject: Re: Plot command crashes Octave
Date: Mon, 4 Jul 2016 13:35:53 -0500

On Mon, Jul 4, 2016 at 12:25 PM, Vic Norton <address@hidden> wrote:


Hi

A slight modification of your script does not work on my El Capitan Octave
(homebrew version 4.0.2). The problem: octave/gnuplot can only draw
dotted grid lines, which are almost impossible to see with the default
0.5 linewidth. Here is a demonstration script.

% test_octave_graphics.m  - to demonstrate an octave/gnuplot problem
  graphics_toolkit('gnuplot');
  x = 0 : 0.1 : 3.5;
  y = sin(x);
  close all;
  figure;
  plot(x, y);
  axis([0, 3.5, 0, 1.5], "equal");
  set(gca, "xgrid", "on", "ygrid", "on", ...
    "gridlinestyle", "-", ...
    "xtick", [0 : 0.5 : 3.5], ...
    "ytick", [0 : 0.5 : 1.5] ...
  );

Change the first line to
  graphics_toolkit(‘qt’);
and you will see solid grid lines —- as you should.

​What kind if terminal your gnuplot is using?
With either qt or x11 terminals I get a reasonably good
looking picture (see attached).

You can select terminal by using
setenv("GNUTERM", "qt")

 

Regards,

Vic

​Dmitri.
--

Attachment: Screenshot_from_2016-07-04_13-32-18.png
Description: PNG image

Attachment: Screenshot_from_2016-07-04_13-28-15.png
Description: PNG image


reply via email to

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