Positioning legend using JHandles

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

Positioning legend using JHandles

by Matthew Bennett-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

As a new user coming from a MATLAB background I’m very impressed by Octave
and the JHandles graphics package. While JHandles can do almost everything I
want it to, repositioning the legend box is one thing I haven’t had any luck
with (v0.3.3). Have I missed a trick? Otherwise, is this functionality
expected in a forthcoming update?

Great work everyone,

Matt


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

Re: Positioning legend using JHandles

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's is the "location" property of the legend object.
This property support the same set of values as in Matlab
(maybe not all of them). You can't reposition the legend
using the mouse.

Michael.


On Sun, Jun 22, 2008 at 3:42 PM, Matthew Bennett <thematt@...> wrote:

> Hi All,
>
> As a new user coming from a MATLAB background I'm very impressed by Octave
> and the JHandles graphics package. While JHandles can do almost everything I
> want it to, repositioning the legend box is one thing I haven't had any luck
> with (v0.3.3). Have I missed a trick? Otherwise, is this functionality
> expected in a forthcoming update?
>
> Great work everyone,
>
> Matt
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Octave-dev mailing list
> Octave-dev@...
> https://lists.sourceforge.net/lists/listinfo/octave-dev
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

Parent Message unknown Re: Positioning legend using JHandles

by Matthew Bennett-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I did miss a trick then! Many thanks for your prompt response Michael.

I had been unsuccessful using:
legend('test', 'Location', 'NorthWest');

But following your advice I can do:
legend('test');
set(legend, 'Location', 'NorthWest');

(I see I can use the legend function directly in 'set' as it just returns
the handle when called, so I can move the legend without needing to save the
handle when I first created it, or need to find it using
findobj(gcf,'tag','legend'))

Thanks again

Matt


 -----Original Message-----
From: Michael Goffioul [mailto:michael.goffioul@...]
Sent: 22 June 2008 19:27
To: Matthew Bennett
Cc: octave-dev@...
Subject: Re: [OctDev] Positioning legend using JHandles

There's is the "location" property of the legend object.
This property support the same set of values as in Matlab
(maybe not all of them). You can't reposition the legend
using the mouse.

Michael.


On Sun, Jun 22, 2008 at 3:42 PM, Matthew Bennett <thematt@...> wrote:

> Hi All,
>
> As a new user coming from a MATLAB background I'm very impressed by Octave
> and the JHandles graphics package. While JHandles can do almost everything I
> want it to, repositioning the legend box is one thing I haven't had any luck
> with (v0.3.3). Have I missed a trick? Otherwise, is this functionality
> expected in a forthcoming update?
>
> Great work everyone,
>
> Matt


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev