[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AspectRatio Patches [changeset]
From: |
logari81 |
Subject: |
Re: AspectRatio Patches [changeset] |
Date: |
Mon, 01 Nov 2010 22:54:10 +0100 |
On Mon, 2010-11-01 at 05:53 -0400, Ben Abbott wrote:
> On Nov 1, 2010, at 3:54 AM, Konstantinos Poulios wrote:
>
> > On Mon, Nov 1, 2010 at 4:26 AM, Ben Abbott <address@hidden> wrote:
> >>
...
> >>
> >> I was unable to apply your patch.
> >>
> >> $ patch -p1 < /Users/bpabbott/Desktop/octave_aspectratios_2.patch
> >> patching file src/graphics.cc
> >> Hunk #2 FAILED at 3911.
> >> Hunk #3 FAILED at 3927.
> >> Hunk #4 FAILED at 4575.
> >> 3 out of 4 hunks FAILED -- saving rejects to file src/graphics.cc.rej
> >>
> >> Can you generate a mercurial changeset against the current sources?
> >>
> >> Ben
> >
> > Ups, sorry for the inconvenience. This was of course the wrong file. I
> > send you the right one in the present mail.
> >
> > Kostas
> > <aspectratios2.changeset>
>
> With this changeset, I'm not getting the correct result for "axis equal". See
> the LL plot for ...
>
> demo ("axis", 1)
>
> Also, the 5th demo gives me an error.
>
> demo ("axis", 1)
>
> axis example 5:
> clf
> axis image
> x=0:0.1:10;
> plot(x,sin(x))
> axis image
> title("image")
>
> error: __actual_axis_position__: quotient: nonconformant arguments (op1 is
> 1x2, op2 is 1x3)
> error: called from:
> error:
> /Users/bpabbott/Development/mercurial/local_clone/scripts/plot/private/__actual_axis_position__.m
> at line 65, column 33
> error:
> /Users/bpabbott/Development/mercurial/local_clone/scripts/plot/__go_draw_axes__.m
> at line 71, column 9
> error:
> /Users/bpabbott/Development/mercurial/local_clone/scripts/plot/__go_draw_figure__.m
> at line 86, column 17
> error:
> /Users/bpabbott/Development/mercurial/local_clone/scripts/plot/gnuplot_drawnow.m
> at line 90, column 5
> error: input: reading user-input failed!
> error:
> /Users/bpabbott/Development/mercurial/local_clone/scripts/testfun/demo.m at
> line 110, column 7
>
> Ben
>
> p.s. we dropped off the list, so I've reattached you changeset, in case
> others want to take a look.
>
Hi Ben.
Concerning the error in __actual_axis_position__ it seems that an older
bug has been triggered through my changes. Anyway the part of the code
where the error occurs seems to be redundant as it tries to recalculate
the plotboxaspectratio that we have already calculated in graphics.cc .
So I believe this calculation should be better removed instead of been
fixed. The changeset in the file "aspectratios3.changeset" removes this
redundant code.
After this, the changeset "aspectratios4.changeset" which is an updated
version of "aspectratios2.changeset" can be applied as well.
On my system with this two changesets (3 and 4) applied all axis demos
worked well with the gnuplot backend.
For demo("axis",1) I couldn't notice any unexpected behavior. Could you
test these two patches and attach some screenshot if you find any error?
Thank you in advance
Kostas
aspectratios3.changeset
Description: Text document
aspectratios4.changeset
Description: Text document
- Re: AspectRatio Patches [changeset], Ben Abbott, 2010/11/01
- Re: AspectRatio Patches [changeset],
logari81 <=
- Re: AspectRatio Patches [changeset], Ben Abbott, 2010/11/01
- Re: AspectRatio Patches [changeset], Ben Abbott, 2010/11/02
- Re: AspectRatio Patches [changeset], logari81, 2010/11/02
- Re: AspectRatio Patches [changeset], Ben Abbott, 2010/11/02
- Re: AspectRatio Patches [changeset], logari81, 2010/11/03
- Re: AspectRatio Patches [changeset], Ben Abbott, 2010/11/03
- Re: AspectRatio Patches [problem with colorbar], Ben Abbott, 2010/11/06
- Re: AspectRatio Patches [problem with colorbar], logari81, 2010/11/07
- Re: AspectRatio Patches [problem with colorbar], Ben Abbott, 2010/11/07