help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `text` or `annotation` with coordinate positions


From: Nicholas Jankowski
Subject: Re: `text` or `annotation` with coordinate positions
Date: Tue, 17 Dec 2019 10:49:28 -0500

On Tue, Dec 17, 2019 at 8:33 AM oxy via Help list for GNU Octave <address@hidden> wrote:
Hi,

is it possible to use plot annotations positioned like that?

     annotation ('textbox', 'southeast', 'string', 'hello world')
     text('textbox', 'location', 'southeast', 'string', 'hello world')

Those commands do not work, but i think you see what i mean
(wanna use coordinate locations).

It adds too much code to extract the values of `axis` and calculate
the proper positions for my text.

 
the position names "north", "south", etc., I believe are limited in use to legend objects, where it is specified as a name/value pair, eg., "location", "northeast".  
see:
https://octave.sourceforge.io/octave/function/legend.html  

looking at the help text for both text and annotation:
https://octave.sourceforge.io/octave/function/text.html  
https://octave.sourceforge.io/octave/function/annotation.html  

they require specified coordinate positions. 

Checking for compatibility, it appears that the behavior is the same in Matlab.  if you have ideas for extending those functions to provide additional capability without breaking compatibility, feel free to share with the group, although since the code to extract and calculate positions not overly complicated, priority might be low.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]