[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: Sat, 1 Oct 2016 18:10:44 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

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

OK, thanks.  There is also the possibility of redefining \gplbactext, which is
a very PostScript-ee thing to do.

However, I think the solution is already present in Octave.  The axes object
has a layer property, which I noticed by looking through the gnuplot toolkit

  ## The grid front/back/layerdefault option also controls the
  ## appearance of tics, so it is used even if the grid is absent.
  if (strcmp (axis_obj.layer, "top"))
    fputs (plot_stream, "set grid front;\n");
    fputs (plot_stream, "set border front;\n");
    fputs (plot_stream, "set grid layerdefault;\n");
    ## FIXME: The gnuplot help says that "layerdefault" should work
    ##        for set border too, but it fails for me with gnuplot 4.2.5.
    ##        So, use "back" instead.
    fputs (plot_stream, "set border back;\n");

So, the following works with the current code:

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, 'layer', 'top')

where I've added an extra "set()" command.

The issue is that the border being on the bottom layer doesn't seem to be of
any practical use unless perhaps the white background rectangle can be forced
even further back.  So, what to do?  Again, this front/back from gnuplot's
perspective isn't something I like--my preference in gnuplot would be to just
maintain the draw order as depth and let the user/application deal with the
layering.  I'll look around a bit and see if there is something sensible,
otherwise if there is a way to make "top" be the default border layer for
gnuplot toolkit, that might be the preference.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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