[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead
From: |
jsh |
Subject: |
[Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent |
Date: |
Mon, 02 Mar 2015 05:28:29 +0000 |
User-agent: |
Opera/9.80 (X11; Linux x86_64; Edition Linux Mint) Presto/2.12.388 Version/12.16 |
URL:
<http://savannah.gnu.org/bugs/?44405>
Summary: colorbar is attached to figure instead of axes
parent
Project: GNU Octave
Submitted by: jsh
Submitted on: Mon 02 Mar 2015 05:28:28 AM GMT
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The colorbar is always attached to the root figure instead of the axis parent.
This is incorrect f for example the axes is a child of an uipanel.
f=figure;, h=uipanel('parent',f); axes('parent',h), colorbar
I get the correct behavior if I in colorbar.m change the lines 191-195 from
[pos, cpos, vertical, mirror] = ...
__position_colorbox__ (loc, obj, ancestor (ax, "figure"));
set (ax, "position", pos);
cax = __go_axes__ (hpar, "tag", "colorbar",
to
hcpar = get( ax, "parent" );
[pos, cpos, vertical, mirror] = ...
__position_colorbox__ (loc, obj, hcpar );
set (ax, "position", pos);
cax = __go_axes__ (hcpar, "tag", "colorbar",
This does not seem to be a proper fix though, and there might be
configurations where it fails but normal axis in figure and axis in uipanel
works.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44405>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent,
jsh <=
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, jsh, 2015/03/02
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, jsh, 2015/03/02
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, Rik, 2015/03/02
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, Rik, 2015/03/02
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, Pantxo Diribarne, 2015/03/02
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, jsh, 2015/03/06
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, Pantxo Diribarne, 2015/03/06
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, Rik, 2015/03/06
- [Octave-bug-tracker] [bug #44405] colorbar is attached to figure instead of axes parent, jsh, 2015/03/07