Octave 3.1.55: printing plot with colorbar
John W. Eaton
jwe at octave.org
Fri May 22 13:21:35 CDT 2009
On 5-Apr-2009, Petr Mikulik wrote:
| There is a bug Octave 3.1.55 in printing a plot with colorbar (with gnuplot
| backend):
|
| imagesc(1./hilb(33)); colorbar
| print a.ps -dps
|
| => the colorbar gets hidden under the plot in the file. The same happens for
| output to png etc.
I don't see this behavior with the current development sources. At
least the printed version of the figure looks correct to me. But
after the print command the colorbar is hidden below the main figure
on the screen. I see
octave:27> imagesc(1./hilb(33)); colorbar
octave:28> kids = get (gcf, 'children')
kids =
-7.0957
-13.0349
octave:29> gca
ans = -13.035
octave:30> get (kids(1), 'position')
ans =
0.827500 0.110000 0.046500 0.815000
octave:31> print a.ps -dps
octave:32> kids = get (gcf, 'children')
kids =
-7.0957
-13.0349
octave:33> get (kids(1), 'position')
ans =
0.688000 0.110000 0.037200 0.815000
I don't know why the position of the colorbar is changing with the
print command and I'm not very familiar with the colorbar code, so it
would be helpful if someone could help debug the problem.
jwe
More information about the Bug-octave
mailing list