[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Only one trace appears in gnuplot

**From**: |
Robert D. Penny |

**Subject**: |
Only one trace appears in gnuplot |

**Date**: |
Tue, 29 Jun 1999 15:06:37 -0700 (PDT) |

I have just compiled and installed octave-2.0.14 on a Redhat 6.0 system.
I've encountered a small glitch in plotting two traces on the same
figure. It appears that the problem occurs when gnuplot is only sent a small
amount of data.
If I execute
octave:1> a=[0:.1:5];
octave:2> plot(a,sin(a),a,cos(a))
gnuplot only displays the sine curve, whereas
octave:1> a=[0:.1:6];
octave:2> plot(a,sin(a),a,cos(a))
displays both the sine and the cosine curve.
Similarly, executing
octave:11> a=[0:.1:2];
octave:12> plot(a,sin(a),a,cos(a),a,(sin(a)).^2)
displays 3 traces, whereas
octave:9> a=[0:.1:1];
octave:10> plot(a,sin(a),a,cos(a),a,(sin(a)).^2)
only displays one trace. However, adding an explicit data point of (0,0)
at the end
octave:15> plot(a,sin(a),a,cos(a),a,(sin(a)).^2,0,0)
then causes all three traces to display.
Is this a known problem? Do others see this problem?
I'm using
G N U P L O T
Linux version 3.7
patchlevel 0
last modified Thu Jan 14 19:34:53 BST 1999
Thanks,
-Rob Penny (address@hidden)
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------

**Only one trace appears in gnuplot**,
*Robert D. Penny* **<=**