[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63095] Set HandleVisibility to off and plot b
From: |
Nicky McLean |
Subject: |
[Octave-bug-tracker] [bug #63095] Set HandleVisibility to off and plot bounds are not adjusted for large values then plotted.. |
Date: |
Fri, 23 Sep 2022 08:41:39 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?63095>
Summary: Set HandleVisibility to off and plot bounds are not
adjusted for large values then plotted..
Project: GNU Octave
Submitter: dinosaur
Submitted: Fri 23 Sep 2022 12:41:38 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: dinosaur
Originator Email:
Open/Closed: Open
Release: other
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 23 Sep 2022 12:41:38 PM UTC By: Nicky McLean <dinosaur>
The objective if to produce a complex plot, with decorations. Using
half-hourly electricity data, the plan is to plot a line joining daily
averages, and, for each day a vertical line from the day's maximum to its
upper quartile, and also from its lower quartile to the minimum - each
sequence in different colours. Thus there will be two bands of vertical bars,
with a joined line for the daily averages in between.
In the case of more than one data series to be plotted on the same figure,
a legend is needed. So that the legend association is not distracted by the
decorations, the averages are plotted as normal, but the decorations are
plotted with "HandleVisibility" "off". Thus for two data series there would be
six plot commands (three for each series: the averages, and the upper and
lower bars) but there are only two legend entries.
But the top of the plot is missing. That is, the upper bound of the plot is
that of the highest value of the daily averages and the higher values of the
upper band (daily max. to upper quartile) are outside the range shown. By
supplying the maximum value of the data to the ylim command, the upper band is
recovered and all appears.
This behaviour applies for the windows version of Octave (currently 4.4.0;
updating is on hold during this test) and also the more recent GNU/Linux
version (dual boot system). But with Matlab (on windows), the original site
for the development of the command file, this was not a problem and there is
no need for ylim.
The attached file shows a simple demonstration, producing one figure with
and one without the use of ylim, in which case the top is missing. If
HandleVisibility is left "on", both plots come out properly, and without ylim
being specified, the upper bound is that of the data plotted.
In short, Octave's plotting differs from Matlab's...
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 23 Sep 2022 12:41:38 PM UTC Name: Trim.m Size: 2KiB By: dinosaur
<http://savannah.gnu.org/bugs/download.php?file_id=53746>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63095>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63095] Set HandleVisibility to off and plot bounds are not adjusted for large values then plotted..,
Nicky McLean <=