octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #46765] Overwriting tick labels with double pr


From: Vic Norton
Subject: [Octave-bug-tracker] [bug #46765] Overwriting tick labels with double precision numbers
Date: Sun, 27 Dec 2015 15:39:13 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9

URL:
  <http://savannah.gnu.org/bugs/?46765>

                 Summary: Overwriting tick labels with double precision
numbers
                 Project: GNU Octave
            Submitted by: vicnorton
            Submitted on: Sun 27 Dec 2015 03:39:12 PM GMT
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Vic Norton
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Mac OS

    _______________________________________________________

Details:

Octave 4.0.0: The second plot in the example is bad. The double precision
floating point numbers are overwriting the corresponding dates. No problem in
Octave 3.8.2. Both plots look exactly the same.


% octave4bug.m  - to demonstrate a plot bug in GNU Octave 4.0.0 

%% x ticks and labels
xtick1 = [0, 0.24658, 0.49589, 0.74795, 1];
xtick2 = [0, 0.2465753424657534, 0.4958904109589041, ...
  0.7479452054794521, 1];
xticklabel = {"2013-12-31", "2014-03-31", ...
  "2014-06-30", "2014-09-30", "2014-12-31"};

%% plots
close all;
hfg = figure();
hax1 = subplot(2, 1, 1, "tickdir", "out");
axis([0 1 0 1]);
hax2 = subplot(2, 1, 2, "tickdir", "out");
axis([0 1 0 1]);
set(hax1, "xtick", xtick1, "xticklabel", xticklabel);
set(hax2, "xtick", xtick2, "xticklabel", xticklabel);






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 27 Dec 2015 03:39:12 PM GMT  Name: octave4_gnuplot_qt.jpg  Size:
68kB   By: vicnorton

<http://savannah.gnu.org/bugs/download.php?file_id=35868>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46765>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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