octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49223] gnuplot with -depslatexstandalone fail


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #49223] gnuplot with -depslatexstandalone fails to produce axis labels
Date: Mon, 3 Oct 2016 05:05:11 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #27, bug #49223 (project octave):

I think I have a near satisfactory solution.  I tried the approach mentioned
in the previous post:

1) Use gnuplot's terminal background color option
2) Draw the "backtext"
3) Render all the PostScript (i.e., all in one file)
4) Draw the "fronttext"

That at least makes everything not behind the axes background (which is?)
visible.

I had to do a little bit of a trick for the Qt terminal, which for some reason
doesn't have a background color option.  Since we aren't sure what interactive
terminal is being used, no less when creating a hard copy, I've done the
conditioning on the terminal inside of gnuplot code itself.

Furthermore, I see that the figure property "inverthardcopy" is what forces
the white color.  SO, give this a try:


graphics_toolkit gnuplot
plot([-10:10],[-10:10].^2,'o-')
title('Plot title should be on top')
legend('single legend')
text(0,20,'internal text at position (0,20)')
xlabel('X Label')
ylabel('Y Label')
set(gca, 'color', [1 1 0.8])
set(gcf, 'color', [0.8 0.8 0.8])
set(gcf, 'inverthardcopy', 'off')  # Try with and without this line
print('-dpdflatexstandalone','-color','test')


and then process with


pdflatex test
xpdf test.pdf


Again, not a perfect solution, but better and I think adequate for 4.2
release.


(file #38651)
    _______________________________________________________

Additional Item Attachment:

File name: octave-gnuplot_terminal_background_bug49223-djs2016oct02.patch
Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49223>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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