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

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

[Octave-bug-tracker] [bug #59731] wrong colorbar length when aspect rati


From: Hg200
Subject: [Octave-bug-tracker] [bug #59731] wrong colorbar length when aspect ratio is manual
Date: Mon, 21 Dec 2020 18:12:03 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Follow-up Comment #5, bug #59731 (project octave):

It would be helpful to know the original purpose behind
"_actual_axis_position_.m" and also the variable "off" in
"calc_cbar_position". In the first part of "_actual_axis_position_.m" the
position and size of the axes is determined in pixel coordinates. But then a
lots of calculations follow that depend on whether the aspect ratio mode is
set to "manual" or not.

I plotted the code in the OP for colorbar variants (north, west, ...,
northoutside, westoutside, ...) with and without aspect ratio set to [1,1,1]
in Matlab R2018. The color bar is always at the same position, regardless of
whether the aspect ratio is set to "manual" or "auto". Can't we just always
position the colorbar as when the aspect ratio is set to "auto"? If I remove
all the code in colorbar.m that does the calculations for the manual case, and
if I set the variable "off" to zero, the result doesn't look so bad. Maybe
some fine tuning necessary. But probably there are cases i don't see yet ;-)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59731>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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