[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plot command crashes Octave
From: |
Vic Norton |
Subject: |
Re: Plot command crashes Octave |
Date: |
Mon, 4 Jul 2016 13:25:21 -0400 |
> On Jul 4, 2016, at 2:40 AM, Sebastian Schöps <address@hidden> wrote:
>
> However, if you do not care which plot backend is used, then this should fix
> the problem:
>
> graphics_toolkit('gnuplot')
> figure;
> x=1:10;
> plot(x,sin(x));
>
> Please let us know if this works.
>
> Bye
> Sebastian
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.
Regards,
Vic
Re: Plot command crashes Octave, Mike Miller, 2016/07/05
- Re: Plot command crashes Octave, Sebastian, 2016/07/06
- Re: Plot command crashes Octave, Mike Miller, 2016/07/06
- Re: Plot command crashes Octave, Dmitri A. Sergatskov, 2016/07/06
- Re: Plot command crashes Octave, Mike Miller, 2016/07/06
- Re: Plot command crashes Octave, Ben Abbott, 2016/07/06