[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40686] Incorrect colorbar size after "axis ti
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40686] Incorrect colorbar size after "axis tight" |
Date: |
Wed, 20 May 2015 15:30:18 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1) |
Update of bug #40686 (project octave):
Status: None => Confirmed
Summary: trouble with subplots and colorbar => Incorrect
colorbar size after "axis tight"
_______________________________________________________
Follow-up Comment #2:
Item (1) is caused by the fact that surf produces 3-D output, but the command
"view (0, 90)" is restricting it to 2-D. For 2-D plots there is no need to
take into account the Z-axis and that is why Octave doesn't bother to set the
Z limits correctly.
This is a known issue and both Matlab and Octave have the pcolor() function
for producing this sort of plot. Replacing
surf (x,y,z)
view (0, 90)
with
pcolor (x,y,z)
correctly sets the zlim values.
Item (3), the size of the colorbar, still remains. Re-titling the bug report
to emphasize that issue.
Since colorbars, legends, and text objects are annotations. It makes sense to
add these only after the plot is visually the way you like it. I know Octave
should be able to handle the other ordering through callbacks, but at least
for now there is a simple work around which is to have colorbar be the last
command for a plot.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40686>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #40686] Incorrect colorbar size after "axis tight",
Rik <=