|
From: Hans-Bernhard B. <br...@ph...> - 2004-03-04 12:57:09
|
On Wed, 3 Mar 2004, Daniel J Sebald wrote: > > Oh yeah, I forgot about "matrix". The issue there is that "matrix" is > designed for 3d data, i.e., splot. (List members, if anything I say > here is incorrect, please correct me.) I was going to about 'matrix', but you seemed to be progressing so nicely, I though I'ld let you you find that one yourself ;-> > There is a routine in "datafile.c" called df_3dmatrix. I think it only > get's called from "plot3d.c". Don't just think, check it. Tools like "cscope" will let you answer such queries almost in an instant: gnuplot/src> cscope -L0 df_3dmatrix datafile.h <global> 100 int df_3dmatrix __PROTO((struct surface_points *, int )); datafile.c df_3dmatrix 1268 df_3dmatrix(this_plot, need_palette) plot3d.c get_3ddata 652 xdatum = df_3dmatrix(this_plot, NEED_PALETTE(this_plot)); You can even let it show you only the calls to a function: gnuplot/src> cscope -L3 df_3dmatrix plot3d.c get_3ddata 652 xdatum = df_3dmatrix(this_plot, NEED_PALETTE(this_plot)); > not the mode is "splot" or "plot". In other words, if I'm not mistaken, > Gnuplot should not allow "matrix" to be used in "plot" mode. The current official version probably shouldn't, right. So let's try... gnuplot> p 'using.dat' matrix u ($0):2:3 w e No error, no warning, and a rather stupid plot. How's that for a rather surprising undocumented feature? > Actually, in the image patch, I modified things so that a mode variable > is passed into that routine so it is possible to identify whether > "splot" or "plot" was issued. I probably needed that information for > something else, but it could be used to rule out "matrix" when issued > with "plot". But it should only be ruled out if that was not a 'plot with pixels', right? > in previous discussions, that 2d and 3d formats have diverged in some > ways. I suspect they have never started off a common ground in the first place. After looking at all the code for prolonged times, you get the impression 3D must have been grafted onto an existing 2D-only plotting program as an afterthought. > I think the "datafile.c" and related routines could be cleaned up > a great deal, focusing more on just getting data from a file into > Gnuplot and not so much on what the eventually plotting mode will look like. Agreed. After 4.0 is out, we could split datafile.c into two: datafile.c and "using.c". The latter would be in charge of all the translation from data records into gnuplot "points", i.e. treat options 'using', 'every', 'index' and 'smooth' (which really should be renamed to 'filter' some time). > Do developers here agree that, for large files, binary data in "plot" > mode is preferable to ascii matrix? Preferrable: yes. But not so much so that it would be a strong argument against allowing 'matrix' at least in those 2D plots that really are 3D (i.e. "plot with image"). I think we actually should allow 'matrix' for such plots. It's about equally sensible as allowing binary files for 2D plots. But this really had better be delayed until after the 4.0 release. We might want to put this into the "TODO" file, though. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |
|
From: Daniel J S. <dan...@ie...> - 2004-03-04 18:09:57
|
Hans-Bernhard Broeker wrote: >On Thu, 4 Mar 2004, Daniel J Sebald wrote: > >[...] > > > >>I must learn how to use this cscope. (I've bookmarked the info page... >>hey, why the water jostling around in the magnifying glass guy's head? >>Is he/she/it supposed to be half magnifying glass, half periscope, i.e., >>sea scope?) >> >> > >I've no idea --- I didn't design the mascot, and the person who made it >didn't leave an explanation of the intent. But your guess appears quite >likely to be true. > Well, I guess water should actually "slosh", not "jostle". So anyway, why doesn't Gnuplot have a mascot? :) Dan |
|
From: Petr M. <mi...@ph...> - 2004-03-04 18:25:08
|
> So anyway, why doesn't Gnuplot have a mascot? :) That's why I've put on the new web page "Screenshots" section that icon with a bug (icon used on OS/2 -- what the icon on other OSes?). Isn't that a mascot? Who drew it? --- PM |
|
From: Daniel J S. <dan...@ie...> - 2004-03-04 18:51:36
|
Petr Mikulik wrote: >>So anyway, why doesn't Gnuplot have a mascot? :) >> >> > >That's why I've put on the new web page "Screenshots" section that icon with >a bug (icon used on OS/2 -- what the icon on other OSes?). Isn't that a >mascot? Who drew it? > What?! Gnuplot's mascot is a bug? I don't think that is a good idea... :) It does look like a bug (a black widow spider... with four legs), but I think it is supposed to be the face of a gnu amidst a rectangle representing a plot, i.e., gnu-plot. Dan |
|
From: John B. <bb...@ya...> - 2004-03-04 22:30:27
|
The three links to the French gnuplot pages are
broken.
--jab
=====
John Bollinger, CFA, CMT
www.BollingerBands.com
If you advance far enough, you arrive at the beginning.
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
|
|
From: Petr M. <mi...@ph...> - 2004-03-05 07:36:09
|
> The three links to the French gnuplot pages are > broken. At which web page? At the new one, it is said there: http://gnuplot.sourceforge.net/help.html => Gnuplot pages in French - but no one is currently available: N/A Traduction de la documentation de gnuplot N/A Premiers Pas avec Gnuplot 3.5 N/A Le groupe Leonhard Euler If you know some (more) working sites, please contribute. --- PM |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-03-05 20:11:23
|
On Thursday 04 March 2004 11:29 pm, Petr Mikulik wrote: > > Gnuplot pages in French - but no one is currently available: > N/A Traduction de la documentation de gnuplot > N/A Premiers Pas avec Gnuplot 3.5 > N/A Le groupe Leonhard Euler > > > If you know some (more) working sites, please contribute. http://www.esiee.fr/~vancauwo/util/gnuplot/gnuplot.pdf http://www.univ-pau.fr/~artouste/fr/composants/gnuplot/ManuelutilisateurGnuplot.htm http://www.ofset.org/freeduc/book/book_17.html http://logiciels-libres-cndp.ac-versailles.fr/gnuplot/ -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center (206)543-1421 Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Hans-Bernhard B. <br...@ph...> - 2004-03-04 18:20:23
|
On Thu, 4 Mar 2004, Daniel J Sebald wrote: > Well, I guess water should actually "slosh", not "jostle". So anyway, > why doesn't Gnuplot have a mascot? :) Simple: because no-one ever thought that we needed one badly enough to go and make one. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |
|
From: Petr M. <mi...@ph...> - 2004-03-05 08:00:39
|
> I drew it. > It is meant to be the face of a gnu superimposed on a plot. > It was based on a careful study of the small herd of black > wildebeest in a field on the lower mountain slopes about > a kilometre from here. Well, your explanation is nice and I'll put it along to the icon on the web. Don't you have a photo that could accompany this text? However -- shouldn't wildebeest have the whole head black? --- Petr Mikulik |
|
From: Hans-Bernhard B. <br...@ph...> - 2004-03-05 11:30:14
|
On Thu, 4 Mar 2004, Petr Mikulik wrote: > That's why I've put on the new web page "Screenshots" section that icon with > a bug (icon used on OS/2 -- what the icon on other OSes?). Isn't that a > mascot? Who drew it? Hmm... The windows version doesn't use that icon. It has it's own pair of icons, one for the main (text) window, another for the graph. See gnuplot/src/win/*.ico. I guess it might be a good idea to use the same icon on all platforms that use icons, i.e. Windows, OS/2 and (I guess) MacOS. X11 only uses icons in the contexts of KDE or Gnome, AFAIK, and I'm not sure it's possible or easy to export an icon without making gnuplot_x11 dependant on either Gtk or Qt. Any experts know better? OTOH, an icon isn't quite the same as a mascot. That'd have to be more along the lines of the BSD daemon, Tux the Linux penguin, or Mozilla's lizard. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |
|
From: Daniel J S. <dan...@ie...> - 2004-03-05 17:01:09
|
Roger Fearick wrote: >On Thu, 4 Mar 2004, Daniel J Sebald wrote: > > >>Petr Mikulik wrote: >> >> >> >>>>So anyway, why doesn't Gnuplot have a mascot? :) >>>> >>>> >>>> >>>> >>>That's why I've put on the new web page "Screenshots" section that icon with >>>a bug (icon used on OS/2 -- what the icon on other OSes?). Isn't that a >>>mascot? Who drew it? >>> >>> >>> >>What?! Gnuplot's mascot is a bug? I don't think that is a good idea... :) >> >>It does look like a bug (a black widow spider... with four legs), but I >>think it is supposed to be the face of a gnu amidst a rectangle >>representing a plot, i.e., gnu-plot. >> >>Dan >> >> > >I drew it. >It is meant to be the face of a gnu superimposed on a plot. >It was based on a careful study of the small herd of black >wildebeest in a field on the lower mountain slopes about >a kilometre from here. >On the other hand, I don't claim to be an artist. >Roger. > Oh really? You're from Cape Town. Fascinating... Out of curiousity, a search turns up the following: (The first picture looks surprisingly like the icon. What's odd is that there seems to be quite a variation in the direction of the horns.) http://www.seaworld.org/AnimalBytes/wildebeestab.html http://www.seaworld.org/animal-info/animal-bytes/animalia/eumetazoa/coelomates/deuterostomes/chordates/craniata/mammalia/artiodactyla/eastern-white-bearded-wildebeest.htm http://www.m-w.com/mw/art/gnu.htm http://www.gnuworld.com/gnus http://www.onime.com/Africa/herbivores/antilope/whitebeardedgnu.html |
|
From: Daniel J S. <dan...@ie...> - 2004-03-04 17:39:55
Attachments:
nomatrix.diff
|
Hans-Bernhard Broeker wrote:
>On Wed, 3 Mar 2004, Daniel J Sebald wrote:
>
>
>>Oh yeah, I forgot about "matrix". The issue there is that "matrix" is
>>designed for 3d data, i.e., splot. (List members, if anything I say
>>here is incorrect, please correct me.)
>>
>>
>
>I was going to about 'matrix', but you seemed to be progressing so nicely,
>I though I'ld let you you find that one yourself ;->
>
>
>
>>There is a routine in "datafile.c" called df_3dmatrix. I think it only
>>get's called from "plot3d.c".
>>
>>
>
>Don't just think, check it. Tools like "cscope" will let you answer such
>queries almost in an instant:
>
>gnuplot/src> cscope -L0 df_3dmatrix
>datafile.h <global> 100 int df_3dmatrix __PROTO((struct surface_points *, int ));
>datafile.c df_3dmatrix 1268 df_3dmatrix(this_plot, need_palette)
>plot3d.c get_3ddata 652 xdatum = df_3dmatrix(this_plot, NEED_PALETTE(this_plot));
>
>You can even let it show you only the calls to a function:
>
>gnuplot/src> cscope -L3 df_3dmatrix
>plot3d.c get_3ddata 652 xdatum = df_3dmatrix(this_plot, NEED_PALETTE(this_plot));
>
I must learn how to use this cscope. (I've bookmarked the info page...
hey, why the water jostling around in the magnifying glass guy's head?
Is he/she/it supposed to be half magnifying glass, half periscope,
i.e., sea scope?)
>>not the mode is "splot" or "plot". In other words, if I'm not mistaken,
>>Gnuplot should not allow "matrix" to be used in "plot" mode.
>>
>>
>
>The current official version probably shouldn't, right. So let's try...
>
>gnuplot> p 'using.dat' matrix u ($0):2:3 w e
>
>No error, no warning, and a rather stupid plot. How's that for a rather
>surprising undocumented feature?
>
Yes... As a temporary fix for 4.0, the following placed near the start
of the eval_plots() routine inside plot2d.c will rule out using 'matrix'
option with 'splot'. (Patch attached.)
/* Temporary hack to rule out 'matrix' for 2d plots. 'matrix' is
currently
tested for inside df_open() which doesn't know the option currently
can't be used with 'plot'. This should be cleaned up post 4.0
and this
chunk of code tossed out. */
while (!END_OF_COMMAND) {
if (almost_equals(c_token, "mat$rix"))
int_error(c_token, "option 'matrix' not supported for 2d plots");
c_token++;
}
c_token = begin_token;
/* ** First Pass: Read through data files ***
>>Actually, in the image patch, I modified things so that a mode variable
>>is passed into that routine so it is possible to identify whether
>>"splot" or "plot" was issued. I probably needed that information for
>>something else, but it could be used to rule out "matrix" when issued
>>with "plot".
>>
>>
>
>But it should only be ruled out if that was not a 'plot with pixels',
>right?
>
Correct.
>>in previous discussions, that 2d and 3d formats have diverged in some
>>ways.
>>
>>
>
>I suspect they have never started off a common ground in the first place.
>After looking at all the code for prolonged times, you get the impression
>3D must have been grafted onto an existing 2D-only plotting program as an
>afterthought.
>
Yes, that is my impression as well.
>>I think the "datafile.c" and related routines could be cleaned up
>>a great deal, focusing more on just getting data from a file into
>>Gnuplot and not so much on what the eventually plotting mode will look like.
>>
>>
>
>Agreed. After 4.0 is out, we could split datafile.c into two: datafile.c
>and "using.c". The latter would be in charge of all the translation from
>data records into gnuplot "points", i.e. treat options 'using', 'every',
>'index' and 'smooth' (which really should be renamed to 'filter' some
>time).
>
That should be good.
>>Do developers here agree that, for large files, binary data in "plot"
>>mode is preferable to ascii matrix?
>>
>>
>
>Preferrable: yes. But not so much so that it would be a strong argument
>against allowing 'matrix' at least in those 2D plots that really are 3D
>(i.e. "plot with image").
>
>I think we actually should allow 'matrix' for such plots. It's about
>equally sensible as allowing binary files for 2D plots.'
>
Sure. I think 'matrix' should be valid whenever appropriate. If
someone has a small set of data, fine. And if they have a large set of
data, fine too. But I think it is just a better habit to work with
compact data and not 20 M ASCII files.
Dan
|