Mercurial > octave
comparison scripts/plot/util/print.m @ 21859:ec3adcec1337
Fix "inverthardcopy" for transparent axes and plotyy (bug #48161).
* plotyy.m: Only set the second axes color to "none"
* print.m: When using "inverthardcopy" don't change the color of transparent
axes to white
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 09 Jun 2016 16:41:39 +0200 |
parents | b002b4331a12 |
children | 4c0f78b3c86f |
comparison
equal
deleted
inserted
replaced
21858:25b117822bfd | 21859:ec3adcec1337 |
---|---|
394 endif | 394 endif |
395 | 395 |
396 if (do_hardcopy) | 396 if (do_hardcopy) |
397 ## Set background to white for all top-level axes objects | 397 ## Set background to white for all top-level axes objects |
398 hax = findall (opts.figure, "-depth", 1, "type", "axes", | 398 hax = findall (opts.figure, "-depth", 1, "type", "axes", |
399 "-not", "tag", "legend"); | 399 "-not", "tag", "legend", |
400 "-not", "color", "none"); | |
400 m = numel (props); | 401 m = numel (props); |
401 for n = 1:numel(hax) | 402 for n = 1:numel(hax) |
402 props(m+n).h = hax(n); | 403 props(m+n).h = hax(n); |
403 props(m+n).name = "color"; | 404 props(m+n).name = "color"; |
404 props(m+n).value{1} = get(hax(n), "color"); | 405 props(m+n).value{1} = get(hax(n), "color"); |