-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathplotting.html
231 lines (220 loc) · 10.3 KB
/
plotting.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Visclaw Plotting options — Clawpack 5.2.1 documentation</title>
<link rel="stylesheet" href="_static/flasky.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/base.css" type="text/css" />
<link rel="stylesheet" href="_static/layout.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/graphviz.css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/language_data.js"></script>
<script async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="shortcut icon" href="_static/clawicon.ico"/>
<link rel="author" title="About these documents" href="about.html" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Plotting options in Python" href="plotting_python.html" />
<link rel="prev" title="Checkpointing and restarting" href="restart.html" />
</head><body>
<div id="main-wrapper" class="sphinx">
<div id="header-wrapper">
<section id="header">
<!-- <h1><a href="http://clawpack.org/">Clawpack</a></h1> -->
<h1><a href="http://clawpack.org/">Clawpack-5</a></h1>
<nav>
<ul>
<li>
<a href="contents.html">Docs</a>
</li>
<li>
<a href="installing.html">Install</a>
</li>
<li>
<a class="" href="http://clawpack.org/gallery/index.html">Gallery</a>
</li>
<li>
<a href="about.html">Citation</a>
</li>
<li>
<a class="active" href="http://github.com/clawpack">GitHub</a>
</li>
<li>
<a class="" href="community.html">Community</a>
</li>
<li>
<a class="" href="developers.html">Contribute</a>
</li>
</ul>
</nav>
</section>
<div class="decoration"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="plotting_python.html" title="Plotting options in Python"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="restart.html" title="Checkpointing and restarting"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="contents.html">Clawpack 5.2.1 documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="visclaw-plotting-options">
<span id="plotting"></span><h1>Visclaw Plotting options<a class="headerlink" href="#visclaw-plotting-options" title="Permalink to this headline">¶</a></h1>
<div class="section" id="plotting-as-post-processing">
<span id="plotting-postproc"></span><h2>Plotting as post-processing<a class="headerlink" href="#plotting-as-post-processing" title="Permalink to this headline">¶</a></h2>
<p>Running a Fortran version of Clawpack produces output files that can then be
read in to a graphics package as a post-processing step. If you understand
the format of the output files, you can write custom graphics routines using
your favorite visualization tools. The output formats are described in the
section <a class="reference internal" href="output_styles.html#output-styles"><span class="std std-ref">Output data formats</span></a>.</p>
<p>Clawpack includes utilities for plotting using Python, and most of the
documention assumes you will use these tools. See
<a class="reference internal" href="plotting_python.html#plotting-python"><span class="std std-ref">Plotting options in Python</span></a> for a description of these.
The Python package <a class="reference external" href="matplotlib?">matplotlib</a>
is used under the hood for 1d and 2d plots, but the tools provided with
Clawpack simplify some common tasks since they handle looping over all grid
patches as is generally required when plotting AMR data.</p>
<p>Matlab plotting tools (mostly the same as in Clawpack 4.x) are available in
Visclaw.
See <a class="reference internal" href="matlab_plotting.html#matlabplots"><span class="std std-ref">Plotting using Matlab</span></a> for pointers if you wish to use these tools.
For 3d plots the Matlab tools may still be the best choice.</p>
<p>Another alternative for 3d plots (also for 2d) is to use
<a class="reference external" href="https://wci.llnl.gov/codes/visit/home.html">VisIt</a>.
See <a class="reference internal" href="visit_plotting.html#visit-plotting"><span class="std std-ref">Plotting with VisIt</span></a>.</p>
<p>Since Clawpack 4.4, a set of Python plotting tools for 1d and 2d are
the recommended approach. The advantages of using the Python options are:</p>
<blockquote>
<div><ul class="simple">
<li><p>Python and the graphics modules used in Clawpack are open source. Since
Clawpack itself is open source we find it desirable to also have an open
source plotting open for viewing the results.</p></li>
<li><p>The Python tools developed so far (mostly for 1d and 2d data sets) are
more powerful than the Matlab versions they replace, and can be used for
example to automatically generate html versions of multiple plots each
frame over all frames of a computation, to generate latex versions of the
output, as well as to step through the frames one by one as with the
Matlab tools. It is easier to specify a set of multiple plots to be
produced for each frame.</p></li>
<li><p>Matlab graphics are somewhat limited for 3d data sets, whereas several
open source visualization tools such as <cite>VisIt</cite>
are much better for dealing with large data sets, AMR meshes, etc.
and have Python bindings that should allow scripting in a manner
compatible with 1d and 2d. (Yet to be done.)</p></li>
<li><p>Python is a powerful language that can be scripted to perform multiple
runs, such as in a convergence test, and collect the results in tables or
plots. We are developing tools to simplify this process.</p></li>
</ul>
</div></blockquote>
</div>
<div class="section" id="plotting-on-the-fly">
<span id="plotting-onfly"></span><h2>Plotting on the fly<a class="headerlink" href="#plotting-on-the-fly" title="Permalink to this headline">¶</a></h2>
<p><strong>Describe options.</strong></p>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p><a href="http://clawpack.org/">
<img class="logo" src= "_static/clawlogo.jpg" alt="Logo"/>
</a>
<h2>Version 5.2.1</h2>
</p>
<h3><a href="contents.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Visclaw Plotting options</a><ul>
<li><a class="reference internal" href="#plotting-as-post-processing">Plotting as post-processing</a></li>
<li><a class="reference internal" href="#plotting-on-the-fly">Plotting on the fly</a></li>
</ul>
</li>
</ul>
<h3>Related Topics</h3>
<ul>
<li><a href="contents.html">Documentation overview</a><ul>
<li>Previous: <a href="restart.html" title="previous chapter">Checkpointing and restarting</a></li>
<li>Next: <a href="plotting_python.html" title="next chapter">Plotting options in Python</a></li>
</ul></li>
</ul>
<div class="widget navlinks">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/plotting.rst.txt"
rel="nofollow"
target="_blank">Source .rst</a></li>
<li><a href="https://github.com/clawpack/doc/blob/dev/doc/plotting.rst"
rel="nofollow"
target="_blank">Source on GitHub</a></li>
<li><a href="https://github.com/clawpack/doc/commits/dev/doc/plotting.rst"
rel="nofollow"
target="_blank">History</a></li>
<li><a href="https://github.com/clawpack/doc/edit/dev/doc/plotting.rst"
rel="nofollow"
target="_blank">Suggest Edits</a></li>
<li><a href="https://github.com/clawpack/doc/issues/new/choose"
rel="nofollow"
target="_blank">Raise an Issue</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>$('#searchbox').show(0);</script>
<h4>Latest Version</h4>
<ul>
<li><a href="../dev/plotting.html">dev</a></li>
<li><a href="../v5.9.x/plotting.html">v5.9.x</a></li>
</ul>
<h4>Older Versions</h4>
<ul>
<li><a href="../v5.1.x/plotting.html">v5.1.x</a></li>
<li><a href="plotting.html">v5.2.x</a></li>
<li><a href="../v5.3.x/plotting.html">v5.3.x</a></li>
<li><a href="../v5.4.x/plotting.html">v5.4.x</a></li>
<li><a href="../v5.5.x/plotting.html">v5.5.x</a></li>
<li><a href="../v5.6.x/plotting.html">v5.6.x</a></li>
<li><a href="../v5.7.x/plotting.html">v5.7.x</a></li>
<li><a href="../v5.8.x/plotting.html">v5.8.x</a></li>
</ul>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright CC-BY 2022, The Clawpack Development Team.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44811544-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>