[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56476] subplot without parentheses
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #56476] subplot without parentheses |
Date: |
Tue, 11 Jun 2019 20:35:02 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0 |
URL:
<https://savannah.gnu.org/bugs/?56476>
Summary: subplot without parentheses
Project: GNU Octave
Submitted by: None
Submitted on: Wed 12 Jun 2019 12:35:00 AM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Dubs
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
Matlab allows the following use of subplot (though apparently not documented,
it does work.)
subplot mnp
as the equivalent of
subplot (mnp)
Running the following code in matlab will result in two identical plot windows
(figure 1 and figure 2) each with two plots in it sin and cos over a single
period. When you run this in octave if throws an error when attempting to call
subplot without the parentheses.
t = [0:0.1:2*pi];
a = sin(t);
b = cos(t);
figure(1);
clf;
subplot(211);
plot(t,a);
subplot (212);
plot(t,b);
figure(2);
clf;
subplot 211;
plot(t,a);
subplot 212;
plot(t,b);
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 12 Jun 2019 12:35:00 AM UTC Name: spex1.m Size: 190B By: None
<http://savannah.gnu.org/bugs/download.php?file_id=47077>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56476>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56476] subplot without parentheses,
anonymous <=