Back to the main page.

Bug 2165 - automatic figure renaming does not check whether figure name is user specified

Status CLOSED FIXED
Reported 2013-05-14 11:24:00 +0200
Modified 2014-01-29 13:28:43 +0100
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Eelke Spaak
URL:
Tags:
Depends on:
Blocks:
See also:

Roemer van der Meij - 2013-05-14 11:24:36 +0200

As above, spotted in ft_topoplotTFR, but probably is the case for all plotting functions.


Eelke Spaak - 2013-06-03 10:25:03 +0200

(In reply to comment #0) Do you mean you would like to be able to use cfg.funcname to set the figure window title? Or do you mean the functions should check whether the user has done something like set(gcf, 'Name', 'Blabla') before the plotting call?


Roemer van der Meij - 2013-06-03 11:25:34 +0200

I thought the second would be nicer/simpler, renaming figures when the user (or anything else) has set no name yet. Just checked, when a new figure is created without a name specified by the user, the name is '' (empty string). So something like this: if strcmp(get(gcf,'name'),'') % change name end


Eelke Spaak - 2013-06-26 09:40:02 +0200

fixed in r8280


Eelke Spaak - 2014-01-29 13:28:43 +0100

changing lots of bugs from resolved to closed.