bugGNU Octave - Bugs: bug #64221, Minimum step size for x axis in...


bug #64221: Minimum step size for x axis in Octave plot?

Submitter:  None
Submitted:  Fri 19 May 2023 12:42:14 PM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  mouelle Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 7.1.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Fri 19 May 2023 12:42:14 PM UTC, original submission:  

Defining an x vector for a plot with a small step size will,
when you enlarged or rescaled the whole figure, overwrite the previously user specified axis zoom. Here is a sample code that can be used to reproduce the bug.

clear all
close all

n = 200;
bins = peaks(n);
t = [0:1e-11:(n-1)*1e-11];  % This vector creates the bug
%t = [0:1e-10:(n-1)*1e-10];  % This vector works
timeAxis = [t(50) t(end-50)];

plot(t, bins(:,50))
axis manual
hold off

See attached picture.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #54768:  scale2.jpg added by None (177KiB - image/jpeg - Plot xlim before and after the the rescaling of the whole figure)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only group members can vote.


Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2023-05-19 None Attached File- Added scale2.jpg, #54768

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code