octave-maintainers
[Top][All Lists]
Advanced

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

Re: more graphics changes - subplots overlap


From: John W. Eaton
Subject: Re: more graphics changes - subplots overlap
Date: Thu, 22 Mar 2007 14:10:36 -0400

On 21-Mar-2007, Daniel J Sebald wrote:

| John W. Eaton wrote:
| 
| > | So the current behavior seems to be fairly close to compatible.
| > 
| > And the reason nothing happens until the plot command is because I
| > don't know how to make gnuplot display axes (with or without labels
| > and a title) if there is no data to plot.
| 
| If a range is specified, you should be able to get away with something like 
the 
| following.
| 
| set xrange [0:1]
| set yrange [0:1]
| plot '-' with lines
| Inf Inf
| e

OK, I made the following change.

Thanks,

jwe


scripts/ChangeLog:

2007-03-22  John W. Eaton  <address@hidden>

        * plot/__go_draw_axes__.m: If no real data, plot a point at Inf,
        Inf to show axes.  From Daniel J Sebald <address@hidden>.

Index: scripts/plot/__go_draw_axes__.m
===================================================================
RCS file: /cvs/octave/scripts/plot/__go_draw_axes__.m,v
retrieving revision 1.5
diff -u -u -r1.5 __go_draw_axes__.m
--- scripts/plot/__go_draw_axes__.m     21 Mar 2007 15:57:19 -0000      1.5
+++ scripts/plot/__go_draw_axes__.m     22 Mar 2007 18:09:23 -0000
@@ -723,6 +723,8 @@
          fputs (plot_stream, "e\n");
        endif
       endfor
+    else
+      fputs (plot_stream, "plot \"-\";\nInf Inf\ne\n");
     endif
 
     fflush (plot_stream);

reply via email to

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