plotting real & imaginary parts of complex data

plotting real & imaginary parts of complex data

Post by Michael S Kluske » Sat, 13 Jul 1996 04:00:00



What is the easiest way to plot the real and imaginary parts of complex
data using gnuplot, i.e., here's a sample file:

   1  2.800000 (-2.2727976E-02,3.3804771E-02) (-13.69713,-20.37262)
   1  2.900000 (-1.5100162E-02,2.4222020E-02) (-18.53415,-29.73044)
   1  3.000000 (-1.1429808E-02,1.7317461E-02) (-26.54792,-40.22312)
   1  3.100000 (-9.5665818E-03,1.2080790E-02) (-40.28629,-50.87399)

I want to plot the real part of column 4 against column 2.  I have a GKS
based program which easily handles this but I can't figure out how to make
gnuplot do it and I don't have GKS on any of my present machines.

I'm running gnuplot 3.5 on an SGI under IRIX 5.3, should I upgrade to 3.6
or is it still in beta and how unstable is it.

+------------------------------------------------------------------------+
| Michael S. Kluskens                Office: 202/404-1818                |
| Radar Division, Code 5316          FAX:    202/767-6276                |
| Naval Research Laboratory                                              |

+------------------------------------------------------------------------+

 
 
 

plotting real & imaginary parts of complex data

Post by David Denho » Sat, 13 Jul 1996 04:00:00



Quote:> What is the easiest way to plot the real and imaginary parts of complex
> data using gnuplot, i.e., here's a sample file:
>    1  2.800000 (-2.2727976E-02,3.3804771E-02) (-13.69713,-20.37262)
>    1  2.900000 (-1.5100162E-02,2.4222020E-02) (-18.53415,-29.73044)
>    1  3.000000 (-1.1429808E-02,1.7317461E-02) (-26.54792,-40.22312)
>    1  3.100000 (-9.5665818E-03,1.2080790E-02) (-40.28629,-50.87399)
> I want to plot the real part of column 4 against column 2.  I have a GKS
> based program which easily handles this but I can't figure out how to make
> gnuplot do it and I don't have GKS on any of my present machines.

well, you should be able to

plot 'file' using '%*f%f(%*f,%*f) (%f'

which is the c scanf format string to pick up the numbers you want.

On 3.6, you'd use %lf in place of %f

Quote:> I'm running gnuplot 3.5 on an SGI under IRIX 5.3, should I upgrade to 3.6
> or is it still in beta and how unstable is it.

I'm afraid 3.6 is still beta ; features are pretty much frozen, though
there is a issue over a line width patch that we're not yet decided on.

There's a few tweaks and pokes to be made to the syntax, and then
it will probably go into gamma testing - ie last chance to catch
any serious bugs before official release.

dd
--

Tel (01494) 453376 (work)    (01494) 459742  (home)

 
 
 

1. Complex (i.e. with real and imaginary parts) bio-medical images..

Are  complex  bio-medical  images  available  anywhere on the net for
experimentation?  By complex I mean that every sampled data point has
a magnitude and phase information both.

Thanks for any pointers,
--Vishwa

2. What's the algorithm for Motion Blur?

3. Polar scatter plots of complex data

4. Newbie Q! Overloading event?

5. real-time plotting (part 2)

6. Plotting real-time data under Linux, how to?

7. Real-time data plotting

8. plotting real time data

9. Plotting Real-Time Data

10. Plotting real-time data under Linux, how to?

11. plot a part of data.