More Matlab compatibility help

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

More Matlab compatibility help

Rik-4
Bug #53778 is turning out to be quite complicated.  Could someone with
access to a new-ish version of Matlab (has HG2 and groot) run the following

--- Start Code ---
diary on
close all
cf = get (groot, 'currentfigure')

hf = figure ('units', 'pixels', ...
             'position', [250, 500, 400, 100], ...
             'numbertitle', 'off', ...
             'menubar', 'none', 'toolbar', 'none', ...
             'integerhandle', 'off', ...
             'handlevisibility', 'callback', ...
             'tag', 'waitbar');

cf2 = get (groot, 'currentfigure')
set (groot, 'currentfigure', [])

ax = axes ('parent', hf, ...
           'xtick', [], 'ytick', [], ...
           'xlim', [0, 1], 'ylim', [0, 1], ...
           'position', [0.1, 0.3, 0.8, 0.2])

cf3 = get (groot, 'currentfigure')
get (hf, 'currentaxes')
diary off
--- End Code ---

and then upload the generated "diary" file.

--Rik



Reply | Threaded
Open this post in threaded view
|

Re: More Matlab compatibility help

Michele Ginesi
On 04/29/2018 05:28 AM, Rik wrote:

> Bug #53778 is turning out to be quite complicated.  Could someone with
> access to a new-ish version of Matlab (has HG2 and groot) run the following
>
> --- Start Code ---
> diary on
> close all
> cf = get (groot, 'currentfigure')
>
> hf = figure ('units', 'pixels', ...
>               'position', [250, 500, 400, 100], ...
>               'numbertitle', 'off', ...
>               'menubar', 'none', 'toolbar', 'none', ...
>               'integerhandle', 'off', ...
>               'handlevisibility', 'callback', ...
>               'tag', 'waitbar');
>
> cf2 = get (groot, 'currentfigure')
> set (groot, 'currentfigure', [])
>
> ax = axes ('parent', hf, ...
>             'xtick', [], 'ytick', [], ...
>             'xlim', [0, 1], 'ylim', [0, 1], ...
>             'position', [0.1, 0.3, 0.8, 0.2])
>
> cf3 = get (groot, 'currentfigure')
> get (hf, 'currentaxes')
> diary off
> --- End Code ---
>
> and then upload the generated "diary" file.
>
> --Rik
>
>
>
Dear Rik,

I used MATLAB 2017b.
Bests

--
Michele Ginesi