[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: changes to graphics.cc and subplot.m
From: |
Stefan Mahr |
Subject: |
Re: changes to graphics.cc and subplot.m |
Date: |
Sat, 20 Jul 2013 11:48:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
> All,
>
> I've just pushed two changesets ...
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/350cad34b0f8
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/942d892524b3
>
> ... which should fix several bugs in the tracker (I'll verify and close them
> on the next week). I don't expect any regressions, but if anyone sees
> something unexpected please let me know.
>
> I have some additional changes planned to clean up legend.m.
>
> Ben
>
I found some issues:
------------------
subplot() can't be called twice with gnuplot frontend.
octave-cli:1> subplot(1,1,1)
octave-cli:2> subplot(1,1,1)
error: 'tmp' undefined near line 236 column 31
error: evaluating argument list element number 3
error: called from:
error: /usr/share/octave/3.7.5/m/plot/subplot.m at line 236, column 7
octave-cli:2>
I think you just forgot to change line 236 in subplot.m
- set (cf, "currentaxes", tmp);
+ set (cf, "currentaxes", hsubplot);
------------------------
The behaviour of subplot with fltk frontend looks strange. Also, the
first fltk plot differs from the second.
1) gnuplot
graphics_toolkit gnuplot
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
2) fltk
graphics_toolkit fltk
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
3) fltk
graphics_toolkit fltk
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
See attached the screenshot of gnuplot, fltk and fltk second plot. (from
left to right)
If I use additional figure command before subplot, everything looks ok.
graphics_toolkit fltk
figure(1)
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
Stefan
gnuplot_fltk_fltk2.png
Description: PNG image
- Re: changes to graphics.cc and subplot.m, (continued)
- Re: changes to graphics.cc and subplot.m, PhilipNienhuis, 2013/07/19
- Re: changes to graphics.cc and subplot.m, bpabbott, 2013/07/19
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/19
- Re: changes to graphics.cc and subplot.m, PhilipNienhuis, 2013/07/19
- Re: changes to graphics.cc and subplot.m, bpabbott, 2013/07/19
- Re: changes to graphics.cc and subplot.m, PhilipNienhuis, 2013/07/19
- Re: changes to graphics.cc and subplot.m, Michael D. Godfrey, 2013/07/19
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/19
- Re: changes to graphics.cc and subplot.m, PhilipNienhuis, 2013/07/19
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/19
Re: changes to graphics.cc and subplot.m,
Stefan Mahr <=
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Stefan Mahr, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Stefan Mahr, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Dmitri A. Sergatskov, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Benjamin Abbott, 2013/07/20
- Re: Re: changes to graphics.cc and subplot.m, Pantxo Diribarne, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/20
- Re: changes to graphics.cc and subplot.m, Ben Abbott, 2013/07/20