[Top][All Lists]

[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?)

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
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

and then process with

pdflatex test
xpdf test.pdf

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

(file #38651)

Additional Item Attachment:

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


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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