You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p><strong>t</strong> or <strong>transparency</strong> or <strong>alpha</strong>: – <em>alpha=50</em><br>
528
528
Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, <em>i.e.</em>, opaque]. Works only for the PDF and PNG formats.</p></li>
529
+
<li><p><strong>figname</strong> or <strong>savefig</strong> or <strong>name</strong> : – <em>figname=<code>name.png</code></em><br>
530
+
Save the figure with the <code>figname=name.ext</code> where <code>ext</code> chooses the figure image format.</p></li>
<p>To make a linear x/y frame with all axes, but with only left and bottom axes annotated, using xscale = yscale = 1 cm per unit, ticking every 1 unit and annotating every 2, and using xlabel = “Distance” and ylabel = “No of samples”, use</p>
<p>To make a log-log frame with only the left and bottom axes, where the x-axis is 25 cm and annotated every 1-2-5 and the y-axis is 15 cm and annotated every power of 10 but has tick-marks every 0.1, run</p>
<p>To design an axis system to be used for a depth-sqrt(age) plot with depth positive down, ticked and annotated every 500m, and ages (in millions of years) annotated at 1 My, 4 My, 9 My etc., use</p>
<divclass="code-copy-outer-scaffold"><divclass="sourceCode cell-code" id="cb4"><preclass="sourceCode julia code-with-copy"><codeclass="sourceCode julia"><spanid="cb4-1"><ahref="#cb4-1" aria-hidden="true" tabindex="-1"></a><spanclass="im">using</span><spanclass="bu">GMT</span></span>
578
593
<spanid="cb4-2"><ahref="#cb4-2" aria-hidden="true" tabindex="-1"></a><spanclass="co"># This still fails to generate the intended GMT command. (maybe let scale="pow0.5")</span></span>
<p>For a base map for use with polar coordinates, where the radius from 0 to 1000 should correspond to 5 cm and with gridlines and ticks intervals automatically determined, use</p>
<li><p><code>res</code>: The dataset resolution. Possible resolutions are: “<code>01d", "30m", "20m", "15m", "10m", "06m", "05m", "04m", "03m", "02m", "01m", "30s", "15s", "03s", "01s"</code>. However, they are not all available to all datasets. For example, only <code>"earth_relief", "earth_synbath", "earth_gebco"</code> exist for all those resolutions. In case a <code>dataset</code> is specified but no resolution, we make estimate of that resolution based on map extents and what would be good to create a map with 15 cm width.</p></li>
499
499
<li><p><code>registration</code>: The dataset registration. Either <code>grid</code> or <code>pixel</code>. If not provided we choose one.</p></li>
500
500
<li><p><code>exact</code>: The region boundaries in the collections were rounded to more friendly numbers (few decimals). This means that they differ slightly from the pure <code>GMT</code> (<ahref="../..\documentation/modules/plot.html">plot</a>) numbers. Setting <code>exact=true</code> will force using the strict <code>GMT</code> limits.</p></li>
501
+
<li><p><strong>figname</strong> or <strong>savefig</strong> or <strong>name</strong> : – <em>figname=<code>name.png</code></em><br>
502
+
Save the figure with the <code>figname=name.ext</code> where <code>ext</code> chooses the figure image format.</p></li>
<p>Consulting the <code>UN</code> collection we would have found that the “Caribbean” region has the code <code>UN029</code>. So, making a map of the Caribe is as simple as:</p>
<p>But the examples above do not let us plot the country’s borders that help referencing a map. For the time being that is only possible when we use the <code>DCW</code> collection. Next example shows a case with country borders. Also note that for the regions in the <code>DCW</code> (there are 248 of them) we can combine as many countries as we want.</p>
<p>Our last example shows how to extract a topo/bathymetric grid of the “Sea of Azov” and letting the <code>earthregions</code> select the grid resolution. We also show how to make a pretty map with very few commands. Note that for this later case we have much more plotting possibilities than with the <code>earthregions</code> function that is only a tool to select named regions and quickly visualize them.</p>
<p>To use weights provided as a second data column instead of pure counts, use a tuple. <em>e.g.</em><strong>kind=(counts=true, weights=true)</strong>. If no <em>weights</em> are used then we may use the simpler form <strong>kind=??</strong> where <em>??</em> is the name of any of the 6 types. <em>e.g.</em><strong>kind=frequency</strong></p></li>
When input is a <ahref="../..\documentation/general/types.html#sec-image-type">GMTimage</a> of UInt16 type this option will set <strong>auto=true</strong> and show histogram only on the region of interest.</p></li>
543
+
<li><p><strong>figname</strong> or <strong>savefig</strong> or <strong>name</strong> : – <em>figname=<code>name.png</code></em><br>
544
+
Save the figure with the <code>figname=name.ext</code> where <code>ext</code> chooses the figure image format.</p></li>
<p>To draw a histogram of the data <em>v3206_06.txt</em> containing seafloor depths, using a 250 meter bin width, center bars, and draw bar outline, use:</p>
0 commit comments