Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

plotting graph

Status
Not open for further replies.

1surya

Programmer
Jul 14, 2002
25
CA
Hi
I have data with 5000 x values and 5000 y values whose range lies between -180 to +180. I want to represent them in the form of a graph with x and y coordinates.
These data I got from the database through programming in perl.

I have gone through GTK graph but it was upto 999.
My OS is linux.
can any body sujjest me some thing thorugh which I can represent such a huge data in the form of a graph.
thanks in advance
1surya
 
First off - I know nothing about GTK graph!

5000 datapoints to a graph is quite a large sample.

If it's a scattergraph, then 5 charts to show sprawl, if you can wrap the output in a layer, and superimpose layers you'll get your 5x999 datapoints on a single chart - assuming transparent backgrounds, and transparent layers.

If it's for purposes of correlation, if you rank the values, and mean each point over 5 values, and then discard the 1000th, or first, this will give you your 999 datapoints, with no discernible visible difference in the shape of the graph

HTH
 
Hi HTH

My data is phi and psi anges of an amino acid residues from the database of proteins.
The values range from -180 to +180.
I don't require any correlation.
I need to represent graphically how these angles are distributed.its for visualisation purpose only.
could you give some more explanation how to show sprawl.what software I have to use.
the GTK graph comes with linux.
thanks a lot
 
Sprawl is just the results on a scattergraph.

What I meant was that if GTK graph can output a graphic with a transparent background, you could overlay 5 of these in a HTML page using layers with transparent backgrounds, and if they are offset at the same coordinates then the 5 graphs will appear as one.

Task 1 - graph 1-999 --> charts/grph1.gif
Task 2 - graph 1000 - 1998 --> charts/grph2.gif
Task 3 - graph 1999 - 2997 --> charts/grph3.gif
Task 4 - graph 2998 - 3996 --> charts/grph4.gif
Task 5 - graph 3997 - 4995 --> charts/grph5.gif

Task 6 generate a HTML page using layers

<div id=&quot;graph1&quot; style=&quot;position:absolute; width:300px; height:314px; z-index:2; left: 340px; top: 66px&quot;>
<img src=&quot;charts/grph1.gif&quot;>
</div>
<div id=&quot;graph2&quot; style=&quot;position:absolute; width:300px; height:314px; z-index:2; left: 340px; top: 66px&quot;>
<img src=&quot;charts/grph2.gif&quot;>
</div>
<div id=&quot;graph3&quot; style=&quot;position:absolute; width:300px; height:314px; z-index:2; left: 340px; top: 66px&quot;>
<img src=&quot;charts/grph3.gif&quot;>
</div>
<div id=&quot;graph4&quot; style=&quot;position:absolute; width:300px; height:314px; z-index:2; left: 340px; top: 66px&quot;>
<img src=&quot;charts/grph4.gif&quot;>
</div>
<div id=&quot;graph5&quot; style=&quot;position:absolute; width:300px; height:314px; z-index:2; left: 340px; top: 66px&quot;>
<img src=&quot;charts/grph5.gif&quot;>
</div>

Whats essential here is to ensure that the axes are constant, and that way they'll just sit on top of one another, and if points are occluded by sitting one on top of the other, that would have happened anyway with a graphing package

Hope That Helps
Paul ;P
 
HI Paul

I got it now.
Thank you very much for your detailed explanation.
1surya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top