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

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

[Octave-bug-tracker] [bug #33869] minor ticks disappear from log plot wi


From: Ronald
Subject: [Octave-bug-tracker] [bug #33869] minor ticks disappear from log plot with specified xticklabels
Date: Tue, 20 Nov 2012 15:30:12 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0

Follow-up Comment #5, bug #33869 (project octave):

Ben,

My name is written with lower case "v" and "d". Otherwise it's correct.

I do notice a side-effect of my previous patch. The Y axis moves right more
than needed because of this patch after setting manual yticklabels. This
creates a large amount of white space between the ylabel and the axis labels.

The gnuplot command 'set format y "%s"' seems to trigger this. Changing this
to (the default) %g prevents this. Again I'm just poking around here trying to
force the behavior I want. I do not really understand the details of the
gnuplot nor the octave plotting mechanisms.

So my patch to /usr/share/octave/3.6.1/m/plot/private/__go_draw_axes__.m now
is:

@@ -2137,12 +2137,12 @@ function do_tics_1 (ticmode, tics, mtics
         k = 1;
         ntics = numel (tics);
         nlabels = numel (labels);
-        fprintf (plot_stream, "set format %s "%%s";n", ax);
+        fprintf (plot_stream, "set format %s "%%g";n", ax);
         if (mirror)
-          fprintf (plot_stream, "set %stics %s %s %s mirror (", ax,
+          fprintf (plot_stream, "set %stics add %s %s %s mirror (", ax,
                    tickdir, ticklength, axispos);
         else
-          fprintf (plot_stream, "set %stics %s %s %s nomirror (", ax,
+          fprintf (plot_stream, "set %stics add %s %s %s nomirror (", ax,
                    tickdir, ticklength, axispos);
         endif


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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