|
From: | Søren Hauberg |
Subject: | Re: gnuplot versus matlab plot: a suggestion |
Date: | Sat, 14 Jul 2007 14:13:51 +0200 |
User-agent: | Thunderbird 1.5.0.12 (X11/20070604) |
address@hidden skrev:
Question: in the loop bellow, how can i plot with different point styles? for k=1:5 plot(k, k.^k) # monochrome, with points endfor I want the first loop be plotted as '+', the 2nd as '*', the 3rd as balls etc.
How about styles = {"+", "*", "o", "x", "r+"}; for i = 1:5 plot(k, k.^k, styles{k}); endfor ?
I think what should be done is that Octave should work towards matlab compatibility as that is what most users want. However we could have an extra package that was more gnuplot-style. If you want to create such a package take a look at some of the old octave plotting code. I'm guessing it should be easy to create some nice functions from this code. However, remember that Octave is created by volunteers, so if you want this to happen you should do it yourself (I think).Suggestion: i like gnuplot style, and i think that octave's trend to adopt matlab plotting style is nice, but excluding gnuplot style from octave will also unmotivate people to learn "gnuplots language", and a co-existence of both in octave would not be harmfull. I suggets that one can open gnuplot inside octave, loading automatically octave variables to easily plot. This would not need much programming work, and would help keeping gnuplot language alive, and give the option for octave users. Is it a silly suggestion? I think this command __gnuplot_plot__ is not doing exactly that, is it?
Søren
[Prev in Thread] | Current Thread | [Next in Thread] |