about axes properties

View: New views
9 Messages — Rating Filter:   Alert me  

about axes properties

by Francesco Potortì :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the 3.0 manual, I read exactly the same description for both the
"position" and "outerposition" properties.

Also, while plotting two graphs in two subplots, I see that I can move
them around using "outerposition", while changing "position" apparently
has no effect.

Guessing the right numbers for "outerposition" is a matter of trying.
Can someone shed some light on these misteries?

--
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: Potorti@...
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: about axes properties

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 23, 2008 at 6:25 PM, Francesco Potorti` <Potorti@...> wrote:
> In the 3.0 manual, I read exactly the same description for both the
> "position" and "outerposition" properties.
>
> Also, while plotting two graphs in two subplots, I see that I can move
> them around using "outerposition", while changing "position" apparently
> has no effect.

This is a limitation of the gnuplot backend (I guess you're using that
one). In practice, both should have an influence on the axes actual
position. "Position" is the position of the axes box, while "outerposition"
is the bounding box of the complete axes system, including labels,
title, ticks... When you deal with subplot, you usually want to set
the axes outerposition, because you're then sure that the axes won't
overlap each other.

Michael.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown Re: about axes properties

by Matthias Brennwald (bwm) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2008-07-23 at 11:26 -0500, help-octave-request@... wrote:

> Message: 8
> Date: Wed, 23 Jul 2008 18:25:10 +0200
> From: Francesco Potorti` <Potorti@...>
> Subject: about axes properties
> To: Octave users list <help-octave@...>
> Message-ID: <E1KLh9K-0000QH-W3@...>
> Content-Type: text/plain; charset=iso-8859-1
>
> In the 3.0 manual, I read exactly the same description for both the
> "position" and "outerposition" properties.
>
> Also, while plotting two graphs in two subplots, I see that I can move
> them around using "outerposition", while changing "position"
> apparently
> has no effect.
>
> Guessing the right numbers for "outerposition" is a matter of trying.
> Can someone shed some light on these misteries?

My understanding is that the parameter for outerposition is a vector
p(1,2,3,4) with:

p(1) is the x-coordinate of the lower left corner of the plot
p(2) is the y-coordinate of the lower left corner of the plot
p(3) is the width of the plot
p(4) is the height of the plot

All these values are given in relative units, i.e. in fractions of the
width and height of the graph window, where (0/0) is the lower left
corner of the window and (1/1) is the upper right corner.

Does that make sense? If so, something along these lines should propably
be added to the documentation.

Matthias

--
Matthias Brennwald
Project Manager Safety Analysis
Nagra, 5430 Wettingen, Switzerland
+41 56 437 13 32

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: about axes properties

by Francesco Potortì :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>This is a limitation of the gnuplot backend (I guess you're using that
>one). In practice, both should have an influence on the axes actual
>position. "Position" is the position of the axes box, while "outerposition"
>is the bounding box of the complete axes system, including labels,
>title, ticks... When you deal with subplot, you usually want to set
>the axes outerposition, because you're then sure that the axes won't
>overlap each other.

This is clear and consistent with my observations.  If no one adds
anything, I will rewrite the docs about "position" and "outerposition"
and submit them as bug reports.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: about axes properties

by Francesco Potortì :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>My understanding is that the parameter for outerposition is a vector
>p(1,2,3,4) with:
>
>p(1) is the x-coordinate of the lower left corner of the plot
>p(2) is the y-coordinate of the lower left corner of the plot
>p(3) is the width of the plot
>p(4) is the height of the plot
>
>All these values are given in relative units, i.e. in fractions of the
>width and height of the graph window, where (0/0) is the lower left
>corner of the window and (1/1) is the upper right corner.

Yes, this is I too deduced from the current documentation.

>Does that make sense?

Yes, this is approximately the behaviour I observe.

>If so, something along these lines should propably be added to the
>documentation.

I could do that, but some things are not clear to me.

1) I can enlarge the plot up to 1.2 without exceeding the window
   boundaries.

2) Apparently, when you make subplots, you can still move them around
   through the whole window, which is good and useful, but also means
   that "outerposition" is somehow initialised: why can't one look at
   the initial values?

3) How does "aspectratio" interact with the imposed size?
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: about axes properties

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 24-Jul-2008, Francesco Potorti` wrote:

| >My understanding is that the parameter for outerposition is a vector
| >p(1,2,3,4) with:
| >
| >p(1) is the x-coordinate of the lower left corner of the plot
| >p(2) is the y-coordinate of the lower left corner of the plot
| >p(3) is the width of the plot
| >p(4) is the height of the plot
| >
| >All these values are given in relative units, i.e. in fractions of the
| >width and height of the graph window, where (0/0) is the lower left
| >corner of the window and (1/1) is the upper right corner.
|
| Yes, this is I too deduced from the current documentation.
|
| >Does that make sense?
|
| Yes, this is approximately the behaviour I observe.
|
| >If so, something along these lines should propably be added to the
| >documentation.
|
| I could do that, but some things are not clear to me.
|
| 1) I can enlarge the plot up to 1.2 without exceeding the window
|    boundaries.
|
| 2) Apparently, when you make subplots, you can still move them around
|    through the whole window, which is good and useful, but also means
|    that "outerposition" is somehow initialised: why can't one look at
|    the initial values?
|
| 3) How does "aspectratio" interact with the imposed size?


Please remember that with the current graphics system, we are
generally doing what we can to approximate the relatively large and
complex Matlab graphics system given limited developer resources and
the limitations of gnuplot.  It might not always be possible to do the
Matlab-compatible thing given gnuplot's features.  Also, we are in the
process of replacing the gnuplot backend with an OpenGL-based
renderer, so any heroic efforts to improve the gnuplot backend might
not be justified.  If you'd like to discuss this further, or help to
improve Octave's graphics system, I think the maintainers list is a
better place for the discussion..

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: about axes properties

by abdominales :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I would want to write a vector that begins in one certain  point, so my idea was using the function compass and changing the position of the origin of the axes. But it doesn't work, always draw the vector(arrow) emergin from the same origin.

¿have you got any idea?

Thanks.
Matthias Brennwald (bwm) wrote:
On Wed, 2008-07-23 at 11:26 -0500, help-octave-request@octave.org wrote:
> Message: 8
> Date: Wed, 23 Jul 2008 18:25:10 +0200
> From: Francesco Potorti` <Potorti@isti.cnr.it>
> Subject: about axes properties
> To: Octave users list <help-octave@bevo.che.wisc.edu>
> Message-ID: <E1KLh9K-0000QH-W3@tucano.isti.cnr.it>
> Content-Type: text/plain; charset=iso-8859-1
>
> In the 3.0 manual, I read exactly the same description for both the
> "position" and "outerposition" properties.
>
> Also, while plotting two graphs in two subplots, I see that I can move
> them around using "outerposition", while changing "position"
> apparently
> has no effect.
>
> Guessing the right numbers for "outerposition" is a matter of trying.
> Can someone shed some light on these misteries?

My understanding is that the parameter for outerposition is a vector
p(1,2,3,4) with:

p(1) is the x-coordinate of the lower left corner of the plot
p(2) is the y-coordinate of the lower left corner of the plot
p(3) is the width of the plot
p(4) is the height of the plot

All these values are given in relative units, i.e. in fractions of the
width and height of the graph window, where (0/0) is the lower left
corner of the window and (1/1) is the upper right corner.

Does that make sense? If so, something along these lines should propably
be added to the documentation.

Matthias

--
Matthias Brennwald
Project Manager Safety Analysis
Nagra, 5430 Wettingen, Switzerland
+41 56 437 13 32

_______________________________________________
Help-octave mailing list
Help-octave@octave.org
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: about axes properties

by abdominales :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I use "outerposition" property, the effect is like the point of view of the scene changes, but the true axis doen't change.
What I want is to plot a vector (arrowlike) with the origin I want in a 2D space.

The idea is associate one vector to one point of the space (x,y). (x,y) --> (v1,v2).

If I use compass, all the vectors I draw have the origin in (0,0), I would like to plot different arrows qith the origin different than actual (0,0).

I have tried also quiver, but I only can plot a vector field defining his function F(x,y) = M(x,y) i + N(x,y) j

I would like to draw one vector (v1,v2) that has origin at the point (x,y).

Thanks.

Hi,
I would want to write a vector that begins in one certain  point, so my idea was using the function compass and changing the position of the origin of the axes. But it doesn't work, always draw the vector(arrow) emergin from the same origin.

¿have you got any idea?

Thanks.
Matthias Brennwald (bwm) wrote:
On Wed, 2008-07-23 at 11:26 -0500, help-octave-request@octave.org wrote:
> Message: 8
> Date: Wed, 23 Jul 2008 18:25:10 +0200
> From: Francesco Potorti` <Potorti@isti.cnr.it>
> Subject: about axes properties
> To: Octave users list <help-octave@bevo.che.wisc.edu>
> Message-ID: <E1KLh9K-0000QH-W3@tucano.isti.cnr.it>
> Content-Type: text/plain; charset=iso-8859-1
>
> In the 3.0 manual, I read exactly the same description for both the
> "position" and "outerposition" properties.
>
> Also, while plotting two graphs in two subplots, I see that I can move
> them around using "outerposition", while changing "position"
> apparently
> has no effect.
>
> Guessing the right numbers for "outerposition" is a matter of trying.
> Can someone shed some light on these misteries?

My understanding is that the parameter for outerposition is a vector
p(1,2,3,4) with:

p(1) is the x-coordinate of the lower left corner of the plot
p(2) is the y-coordinate of the lower left corner of the plot
p(3) is the width of the plot
p(4) is the height of the plot

All these values are given in relative units, i.e. in fractions of the
width and height of the graph window, where (0/0) is the lower left
corner of the window and (1/1) is the upper right corner.

Does that make sense? If so, something along these lines should propably
be added to the documentation.

Matthias

--
Matthias Brennwald
Project Manager Safety Analysis
Nagra, 5430 Wettingen, Switzerland
+41 56 437 13 32

_______________________________________________
Help-octave mailing list
Help-octave@octave.org
https://www.cae.wisc.edu/mailman/listinfo/help-octave


Re: about axes properties

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you're looking for quiver.

Michael.

On Tue, Aug 12, 2008 at 6:43 AM, abdominales <jmt.mm05@...> wrote:

>
> If I use "outerposition" property, the effect is like the point of view of
> the scene changes, but the true axis doen't change.
> What I want is to plot a vector (arrowlike) with the origin I want in a 2D
> space.
>
> The idea is associate one vector to one point of the space (x,y). (x,y) -->
> (v1,v2).
>
> If I use compass, all the vectors I draw have the origin in (0,0), I would
> like to plot different arrows qith the origin different than actual (0,0).
>
> I have tried also quiver, but I only can plot a vector field defining his
> function F(x,y) = M(x,y) i + N(x,y) j
>
> I would like to draw one vector (v1,v2) that has origin at the point (x,y).
>
> Thanks.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave