Saving any Matplot entity in .scg is bugged
@sgougeon)
Reported by Samuel GOUGEON (Matplot_badly_reloaded.png (198.31 KB, image/png)
screenshot: Matplot() example as saved, compared to as reloaded
BUG DESCRIPTION:
----------------
After loading a .scg generated with the same Scilab 6.0-b2+, pixels are puzzled. See the attached screenshot.
The loaded .data is transposed vs the saved one, but it is not the only issue: feeding .data with its transpose does not fix it.
ERROR LOG:
----------
none. Wrong rendering
HOW TO REPRODUCE THE BUG:
-------------------------
clf
Matplot()
f = gcf();
save(TMPDIR+"/Matplot.scg","f")
d0 = gca().children.data;
size(d0) // => [400 300]
xdel()
load(TMPDIR+"/Matplot.scg")
d1 = gca().children.data;
size(d1) // => [300 400]
and(d1'==d0) // %F
gca().children.data = d1'; // Still badly rendered
OTHER INFORMATION:
------------------
Was OK in Scilab 5.5.2