[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48200] axes labels are not visible printing a
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex |
Date: |
Mon, 20 Jun 2016 19:19:20 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
Follow-up Comment #2, bug #48200 (project octave):
This seems like a gnuplot bug, doesn't it? There's no way to really control
what gnuplot is placing into the latex file. I'll create a gnuplot bug ticket
for this.
I did uncover a couple Octave bugs though. Trying to disable all backgrounds,
I did the following:
>> t = 0:0.01:12;
>> plot (t, sin (t));
>> set(gcf, 'color', 'none')
>> set(gca, 'color', 'none')
>> print ('plot.eps','-depslatexstandalone','-S400,240');
error: 'n' undefined near line 408 column 15
error: called from
print at line 408 column 12
What's happening is that n is undefined because there are no large scale
objects having a white background, numel(hax) equals 0:
## Set background to white for all top-level axes objects
hax = findall (opts.figure, "-depth", 1, "type", "axes",
"-not", "tag", "legend",
"-not", "color", "none");
m = numel (props);
for n = 1:numel(hax)
props(m+n).h = hax(n);
props(m+n).name = "color";
props(m+n).value{1} = get(hax(n), "color");
set (hax(n), "color", "white");
endfor
nfig += n;
Also, to accommodate a solution here without requiring a gnuplot upgrade, it
seems logical that if the figure color is "none" there should be no
background. So I made a change there as well.
See attached changeset.
(file #37532)
_______________________________________________________
Additional Item Attachment:
File name: octave-print_figure_axis_background_bug48200-djs2016jun20.patch
Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48200>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Torsten, 2016/06/11
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Dan Sebald, 2016/06/20
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex,
Dan Sebald <=
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Dan Sebald, 2016/06/20
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Torsten, 2016/06/21
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Dan Sebald, 2016/06/21
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Dan Sebald, 2016/06/21
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Torsten, 2016/06/21
- [Octave-bug-tracker] [bug #48200] axes labels are not visible printing a figure with gnuplot and epslatex, Dan Sebald, 2016/06/21