[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A graphic I can (hardly) do in gnuplot, but not at all in octave
From: |
Cautaerts Vincent |
Subject: |
A graphic I can (hardly) do in gnuplot, but not at all in octave |
Date: |
Tue, 2 Sep 97 16:44:47 JST |
Hello,
I need some help for creating a graphic. Actually, I can not do it
easily under "gnuplot", but maybe there is a good way to do this kind
of things. When doing it from gnuplot, I have to manually change
the data file, which I cannot do everytime under octave !
In brief, I make some simulations of pulses, and I would like to have
something like this (let's try ASCII art...)
y axis
|
| z axis
| / .
| / . . . * *
| / . *. *
| / ..... * . ...*............
| / * *
|/************** ************
-----------------------------------------------> x axis
where *** is supposed to be one line, and .... another.
If I use "mesh", I have a complete grid: i.e. also lines from some "*" to
some "."
Seen from the top of the y axis:
WHAT I HAVE WHAT I'D LIKE z axis
+--+--+--+--+--+ ------------- |
| | | | | | |
+--+--+--+--+--+ ------------- +-----> x axis
| | | | | |
+--+--+--+--+--+ -------------
...
If possible, I would like to have hidden lines, i.e.
y axis
|
| z axis
| / .
| / . . . * *
| / . * *
| / ..... * *............
| / * *
|/************** ************
-----------------------------------------------> x axis
Then, if somebody
1) understands what I mean
2) knows how to do it
please tell me !
When using mesh, I use the command:
mesh(Memory_z',t',abs(Memory_v)');
where "Memory_z" is for example a [1 5] vector, with the z coordinates
of my pulses (thus 5 here)
"t" is a [1 128] vector with the datas for the x axis
"Memory_v" is a [5 128] vector with the datas:
Memory_v(1,:) contains the first curve
Memory_v(2,:) the second,...
I'de like to plot, on a 3d graph, the curves
Memory_v(1,:) versus t in the plane z=Memory_z(1) (represented with ** here)
Memory_v(2,:) versus t in the plane z=memory_z(2) (represented with .. here)
...
If possible, I'de like to have surface hiding.
[ This representation is very often in my field to show
how does some pulses evolve when propagating ]
So, can somebody help me ?
[ I couldn't find how to do this in the gnuplot doc, nor in the
octave one. When doing it under gnuplot, the trick is to erase the
first data of the first curve, such that gnuplot can not see anymore
relations between the different curves, and then draw then individually.
Still, there is no surface hiding ]
By the way: I found some rpm (for RedHat) files with octave, but
I can't remember where. Does anybody knows ?
Thanks to all of you who read up to here !
--
Vincent Cautaerts
Quote of the day/week/month:
Computers are not intelligent. They only think they are.
- A graphic I can (hardly) do in gnuplot, but not at all in octave,
Cautaerts Vincent <=