-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
685 lines (587 loc) · 19.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--
<meta name="description" content="SourceForge presents the pygrace
project. pygrace is an open source application. SourceForge
provides the world's largest selection of Open Source
Software. A Python package for creating xmgrace files." />
<meta name="keywords" content="Open Source, Software, Development,
Developers, Projects, Downloads, OSTG, VA Software, SF.net,
SourceForge, GNU General Public License (GPL), End
Users/Desktop, Science/Research, Python, Project is a
graphics toolkit, Visualization, OS Independent (Written in
an interpreted language),pygrace" />
-->
<title>pygrace</title>
<link rel="stylesheet" href="pygrace.css" type="text/css" />
<script type="text/javascript">
function on_navigation_click(divtoshow) {
document.getElementById('about').style.display = 'none';
document.getElementById('installation').style.display = 'none';
document.getElementById('session').style.display = 'none';
document.getElementById('templates').style.display = 'none';
document.getElementById('publications').style.display = 'none';
document.getElementById(divtoshow).style.display = 'block';
document.getElementById('about'+'-nav').style.color = 'rgb(0,0,0)';
document.getElementById('installation'+'-nav').style.color = 'rgb(0,0,0)';
document.getElementById('session'+'-nav').style.color = 'rgb(0,0,0)';
document.getElementById('templates'+'-nav').style.color = 'rgb(0,0,0)';
document.getElementById('publications'+'-nav').style.color = 'rgb(0,0,0)';
document.getElementById(divtoshow+'-nav').style.color = 'rgb(255,75,0)';
};
</script>
</head>
<body>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ HEADER -->
<div id="header">
<a href=""><img src="images/pygrace.png"/></a>
</div>
<div id="navigation">
<ul>
<li><a href="#" id="about-nav"
onclick="on_navigation_click('about');return
false;">About</a></li>
<li><a href="#" id="installation-nav"
onclick="on_navigation_click('installation');return
false;">Installation</a></li>
<!--
<li><a href="#" id="session-nav"
onclick="on_navigation_click('session');return
false;">Session</a></li>
-->
<li><a href="#" id="templates-nav"
onclick="on_navigation_click('templates');return
false;">Templates</a></li>
<li><a href="#" id="publications-nav"
onclick="on_navigation_click('publications');return
false;">Publications</a></li>
</ul>
</div>
<div id="main">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ABOUT -->
<div id="about" class="content">
<!--<h2>About</h2>-->
<p>
The pygrace project is a set of tools designed to
act as an interface between
the <a href="http://www.python.org/">Python</a> programming
language and
the <a href="http://plasma-gate.weizmann.ac.il/Grace/">Grace</a>
plotting tool.
</p>
<p><b>pygrace</b> allows users to create complex Grace files
from within Python.</p><p>It is intended to:
<ul>
<li>assist in the automated creation of many figures for use
in large-scale, exploratory data analysis.</li>
<li>encourage code reuse, by offering an object-oriented
structure.</li>
<li> reduce the time required to create figures for
scientific journal articles.</li>
</ul>
</p>
<p>
<!--pygrace was originally created by <a href="http://datascopeanalytics.com/who-we-are/">Dean Malmgren</a>, <a href="http://datascopeanalytics.com/who-we-are/">Mike Stringer</a>, and-->
pygrace was originally created by Dean Malmgren, Mike Stringer, and
members of the <a href="http://www.amaral-lab.org/">Amaral Lab</a>. When they decided to let pygrace die a slow death, its maintainance was taken over by <a href="http://stoufferlab.org/people/stouffer/">Daniel Stouffer</a> and the <a href="http://stoufferlab.org">Stouffer Lab</a>.
</p>
<p>To get started with pygrace, see the <a href="#"
onclick="on_navigation_click('installation');return
false;">installation guide</a>.</p>
</div>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TUTORIAL -->
<div id="installation" class="content">
<!--
<h2>Tutorial</h2>
-->
<!--
<p>
<b>Important note: As of August 2009, the pygrace package is
in a time of transition. As such, the following tutorial
will be out of date very soon, but will be replaced by a
more comprehensive one. The following tutorial applies to
the pygrace/trunk version of the project.</b>
</p>
-->
<!--
<p>
Visualizing data may be an integral part of the data
analysis process, however, <em>pygrace is
explicity intended to <u>not</u> perform any type of data
analysis</em>, not even computing an average (and especially
not performing a linear regression). This principle
underlies much of the structure of pygrace, with
the purpose discouraging users to adopt a “black
box” approach to analysis. While visualizing data
should be as painless as possible, the pain required to
understand the analysis process is considered necessary, or
even desirable (if you're into that sort of thing).
</p>
-->
<p>
This tutorial is meant to help with installation of pygrace,
and give new users an idea of how pygrace is structured.
After reading this brief document, the next step for
learning to use pygrace is to go through the examples that
are located in the <span class="path"> pygrace
Examples</span> directory.
</p>
<h3>Installation</h3>
<p>
As pygrace is still young, the only method yet available to
install it is to check out the source code from the
git repository at
the <a href="http://github.com/pygrace/pygrace">Github
page</a>. The next section describes how to do so.
</p>
<h3>Installing a development version</h3>
<p>
To clone the pygrace repository, change to a directory where you
want to save the code and type:
</p>
<span class="command">
git clone https://github.com/pygrace/pygrace.git
</span>
<p>
To install pygrace, all you need to do is enter into the pygrace directory you just created and run setup.py:
</p>
<span class="command">
cd pygrace</br>
python setup.py install
</span>
<p>
By default, Python will attempt to install pygrace in the global Python site-packages directory. If you don't have permissions to do this (or prefer not to install pygrace globally), you can <a href="http://docs.python.org/2/install/index.html#alternate-installation-the-user-scheme">install it locally by adding the --user option</a>:
</p>
<span class="command">
python setup.py install --user
</span>
<p>
You can test that python can find the
pygrace package by opening an interactive python prompt and
typing:
</p>
<span class="command">
import PyGrace
</span>
<p>
If no error is raised, then installation was succesful!
</p>
<h3>Getting started</h3>
<p>
pygrace was designed so that, “anything you can do in
Grace, you can do in pygrace.” The best way to get
started is to go through the examples in the Examples
directory. Each example is fully commented. You may also
find the following three documents helpful:
</p>
<ul>
<li>
<a class="installationdiagram"
href="crow.pdf">
<img class="installationimage" src="images/crow.png"/>
<span class="title">
pygrace templates entity-relationship diagram
</span>
<span class="caption">
The inheritance structure of pygrace templates mirrors the file
structure of Grace. This diagram uses “crow's
foot” notation to indicate the relationship
between different entities. One thing to note is that
Drawing Objects can be associated with either a Grace or
a Graph. This is important in cases where one wants to,
e.g., create a custom data symbol and have the symbol
show up in the coordinate system of a graph.
</span>
</a>
</li>
<li>
<a class="installationlink"
href="cheatsheet.pdf">
<img class="installationimage" src="images/cheatsheet.png"/>
<span class="title">
pygrace templates Cheatsheet
</span>
<span class="caption">
This handy cheatsheet shows the all of the methods and
attributes of each pygrace templates class. It can be generated
for any custom template by calling the write_cheatsheet
method.
</span>
</a>
</li>
<li>
<a class="installationlink"
href="fulldiagram.pdf">
<img class="installationimage" src="images/fulldiagram.png"/>
<span class="title">
pygrace templates attribute diagram
</span>
<span class="caption">
This is a detailed diagram that shows all of the
attributes of the standard pygrace templates objects.
</span>
</a>
</li>
</ul>
By refering to these diagrams and going through the examples,
you can develop a sense of how to use pygrace. Please let us know what you think and
report bugs using <a href="http://github.com/pygrace/pygrace/issues">the GitHub page</a>.
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ SESSION -->
<div id="session" class="content">
<!--
<h2>Examples</h2>
-->
<p>
TBD.
</p>
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TEMPLATES -->
<div id="templates" class="content">
<!--
<h2>Examples</h2>
-->
<p>
Here are some examples of the types of figures that you can
create with pygrace templates. If you are interested in
contributing a screenshot of a figure made in pygrace templates,
<a href="mailto:pygrace@stoufferlab.org">contact us</a>.
</p>
<div class="screenshot">
<a href="images/block_network-math.png"><img src="images/block_network-math_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed by <a href="http://amaral.chem-eng.northwestern.edu/people/guimera/">Roger Guimera</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/time_series_diagram.png"><img src="images/time_series_diagram_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/stringer/">Mike Stringer</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/sweetdash.png"><img src="images/sweetdash_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/malmgren/">Dean Malmgren</a>
</div>
-->
</div>
<div class="bottom"></div>
<div class="screenshot">
<a href="images/bayes.png"><img src="images/bayes_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/stringer/">Mike Stringer</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/bootstrap.png"><img src="images/bootstrap_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/malmgren/">Dean Malmgren</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/transfernet.png"><img src="images/transfernet_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/sirer/">Irmak Sirer</a>
</div>
-->
</div>
<div class="bottom"></div>
<div class="screenshot">
<a href="images/mutualinfo.png"><img src="images/mutualinfo_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/sirer/">Irmak Sirer</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/crosscorrelation.png"><img src="images/crosscorrelation_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/campanharo/">Andriana Campanharo</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/density.png"><img src="images/density_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/stringer/">Mike Stringer</a>
</div>
-->
</div>
<div class="bottom"></div>
<div class="screenshot">
<a href="images/08_latexlabels.png"><img src="images/08_latexlabels_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://pygrace.svn.sourceforge.net/viewvc/pygrace/trunk/Examples/08_latexlabels.py?view=markup">pygrace</a>
</div>
-->
</div>
<div class="screenshot">
<a href="images/quintiles.png"><img src="images/quintiles_small.png" alt=""/></a>
<!--
<div class="contributor">
Contributed
by <a href="http://amaral.chem-eng.northwestern.edu/people/stringer/">Mike Stringer</a>
</div>
-->
</div>
<div class="bottom"></div>
</div>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PUBLICATIONS -->
<div id="publications" class="content">
<!--<h2>Publications</h2>-->
<p>If you use pygrace in a scientific publication, please let
us know and we will add a link to your publication on this
page (where <em>everybody</em> will see it).</p>
<ul>
<li>
<a class="publink"
href="http://dx.doi.org/10.1126/science.1216556">
<img class="pubimage" src="images/daniel-science.gif"/>
<span class="title">
Evolutionary conservation of species' roles in food webs
</span>
<span class="authors">
Stouffer DB, Sales-Pardo M, Sirer MI, Bascompte J
</span>
<span class="journal">
Science
</span>
<span class="volumepage">
335(6075): 1489-1492
</span>
<span class="year">
2012
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1038/nature10433">
<img class="pubimage" src="images/saavedra-nature.jpg"/>
<span class="title">
Strong contributors to network persistence are the most vulnerable to extinction
</span>
<span class="authors">
Saavedra S, Stouffer DB, Uzzi B, Bascompte J
</span>
<span class="journal">
Nature
</span>
<span class="volumepage">
478(7368): 233-235
</span>
<span class="year">
2011
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1371/journal.pone.0023378">
<img class="pubimage" src="images/journal.pone.0023378.g009.png"/>
<span class="title">
Duality between time series and networks
</span>
<span class="authors">
Campanharo ASLO, Sirer MI, Malmgren RD, Ramos FM, Amaral LAN
</span>
<span class="journal">
PLoS One
</span>
<span class="volumepage">
6(8): e23378
</span>
<span class="year">
2011
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1111/j.1365-2656.2011.01812.x">
<img class="pubimage" src="images/daniel-jae.gif"/>
<span class="title">
The role of body mass in diet contiguity and food-web structure
</span>
<span class="authors">
Stouffer DB, Rezende EL, Amaral LAN
</span>
<span class="journal">
J. Anim. Ecol.
</span>
<span class="volumepage">
80(3): 632-639
</span>
<span class="year">
2011
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1073/pnas.1014353108">
<img class="pubimage" src="images/daniel-pnas.gif"/>
<span class="title">
Compartmentalization increases food-web persistence
</span>
<span class="authors">
Stouffer DB, Bascompte J
</span>
<span class="journal">
Proc. Natl. Acad. Sci. USA
</span>
<span class="volumepage">
108(9): 3648-3652
</span>
<span class="year">
2011
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1038/nature09040">
<img class="pubimage" src="images/dean-nature.jpg"/>
<span class="title">
The role of mentorship in protégé performance
</span>
<span class="authors">
Malmgren RD, Ottino JM, Amaral LAN
</span>
<span class="journal">
Nature
</span>
<span class="volumepage">
465(7298): 622-626
</span>
<span class="year">
2010
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1126/science.1174562">
<img class="pubimage" src="images/dean-science.gif"/>
<span class="title">
On universality in human correspondence activity
</span>
<span class="authors">
Malmgren RD, Stouffer DB, Campanharo ASLO, Amaral LAN
</span>
<span class="journal">
Science
</span>
<span class="volumepage">
325(5948): 1696-1700
</span>
<span class="year">
2009
</span>
</a>
</li>
<li>
<a class="publink"
href="http://arxiv.org/abs/0905.0106">
<img class="pubimage" src="images/dean-arxiv.png"/>
<span class="title">
Characterizing individual communication patterns
</span>
<span class="authors">
Malmgren RD, Hofman JM, Amaral LAN, Watts DJ
</span>
<span class="journal">
Proc. ACM SIGKDD
</span>
<span class="volumepage">
607-616
</span>
<span class="year">
2009
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.doi.org/10.1073/pnas.0800332105">
<img class="pubimage" src="images/dean-pnas.png"/>
<span class="title">
A Poissonian explanation for heavy tails in e-mail
communication
</span>
<span class="authors">
Malmgren RD, Stouffer DB, Motter AE, Amaral LAN
</span>
<span class="journal">
Proc. Natl. Acad. Sci. USA
</span>
<span class="volumepage">
105(47): 18153-18158
</span>
<span class="year">
2008
</span>
</a>
</li>
<li>
<a class="publink"
href="http://dx.plos.org/10.1371/journal.pone.0001683">
<img class="pubimage" src="images/mike-plosone.png"/>
<span class="title">
Effectiveness of Journal Ranking Schemes as a Tool for
Locating Information
</span>
<span class="authors">
Stringer MJ, Sales-Pardo M, Amaral LAN
</span>
<span class="journal">
PLoS ONE
</span>
<span class="volumepage">
3(2): e168
</span>
<span class="year">
2008
</span>
</a>
</li>
</ul>
</div>
</div>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FOOTER -->
<div id="footer">
<p>
<span style="vertical-align: middle;">The pygrace project is hosted at </span>
<a href="http://github.com/pygrace"><img src="images/logo_github.png" style="margin: 1px 0px; height: 25px; vertical-align: middle;"/></a>
</p>
</div>
</body>
</html>