plot issues
Petr Mikulik
mikulik at physics.muni.cz
Wed Jun 3 07:20:09 CDT 2009
I went through my list of plot discrepancies of current Octave 3.1.55, and
found the issues below. Ben, can you please fix them?
***
x=-5:5;
plot(x,x, x,1-x, x,1+x)
print -dps mono.ps
print -dpsc color.ps
print -deps mono.eps
print -depsc color.eps
Bug: mono.(e)ps should be monochromatic and solid, but they are color and
dashed; it should use:
set term postscript {eps} monochrome solid
***
There is a bug in printing plot with colorbar:
imagesc(1./hilb(33)); colorbar
print a.ps -dps
=> 1. the colorbar gets hidden under the plot
2. width of the colorbar (compared to tics distance) is different
on screen and in the postscript file
***
printing to pdfcairo
plot(1:100)
print -dpdf z.pdf
print -dpdfcairo zz.pdf
... the output file is called pdfcairo:zz.pdf
***
set(h,'yscale','lin');
Octave supports 'log', but not 'lin'.
***
Bug: 'Colorbar' tag is hidden in Octave, while it should be exposed
according to Matlab:
imagesc(10./hilb(99)); colorbar
h=findobj(gcf, 'tag', 'Colorbar')
... this fails in Octave (note: findall works OK)
***
b=logspace(1,10,24); a=repmat(b,10,1);
imagesc(a); h=colorbar;
set(h, 'YScale', 'log');
There is just a visual difference: Matlab puts tic labels 10^0, 10^1,
10^2, ... while gnuplot puts 1, 10, 100, ..., 100000, 1e+6, 1e+7, ...
***
---
Petr Mikulik
More information about the Bug-octave
mailing list