<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gnuplot.xyz</title>
	<atom:link href="https://gnuplot.xyz/feed/" rel="self" type="application/rss+xml" />
	<link>https://gnuplot.xyz</link>
	<description>The Ultimate Resource for Scientific Visualization</description>
	<lastBuildDate>Tue, 20 Oct 2026 10:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://gnuplot.xyz/wp-content/uploads/2026/04/favicon-150x150.png</url>
	<title>Gnuplot.xyz</title>
	<link>https://gnuplot.xyz</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>The Gnuplot + LaTeX Workflow, End to End</title>
		<link>https://gnuplot.xyz/gnuplot-latex-workflow/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 20 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-latex-workflow/</guid>

					<description><![CDATA[The complete workflow has four stages: a gnuplot script produces the figure, a LaTeX-aware terminal (epslatex or tikz) produces the includable file, the document pulls it in with \input or \includegraphics, and one compile produces the paper. This page walks the whole chain once, with the exact commands at each step. Step 1 &#8212; One...]]></description>
										<content:encoded><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The complete workflow has four stages: a gnuplot script produces the figure, a LaTeX-aware terminal (epslatex or tikz) produces the includable file, the document pulls it in with <code>\input</code> or <code>\includegraphics</code>, and one compile produces the paper. This page walks the whole chain once, with the exact commands at each step.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Step 1 &mdash; One script per figure</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Keep each figure as its own small script that sets its terminal, its output and its plot, in that order. A script per figure (rather than one giant script) means a reviewer comment about Figure 3 costs you one file edit and one command, and the scripts double as the figure&#8217;s provenance.</p>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code># fig-decay.gp
set terminal epslatex size 12.5cm,9cm color colortext
set output "fig-decay.tex"
set xlabel "$t$ (s)"
set ylabel "$N(t)$"
set xrange [0:10]
plot exp(-0.5*x) with lines linewidth 2 title "$e^{-t/2}$"
set output</code></pre>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Step 2 &mdash; Run gnuplot, get the figure files</h2>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>gnuplot fig-decay.gp
# produces: fig-decay.tex  +  fig-decay.eps</code></pre>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">With the epslatex terminal you get the familiar pair: the .tex fragment and the .eps drawing. If you chose the tikz terminal instead, the same command produces a single .tex file containing a TikZ picture (and your preamble then needs the tikz package and the gnuplot-lua-tikz style file). If you chose pdfcairo, you get a single .pdf figure file &mdash; pick exactly one of the three routes per paper and stay consistent.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Step 3 &mdash; Include the figure</h2>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>% preamble for the epslatex route:
\usepackage{graphicx}
\usepackage{color}

\begin{figure}
  \centering
  \input{fig-decay}
  \caption{Decay curve, generated by gnuplot.}
  \label{fig:decay}
\end{figure}

% for the pdfcairo route, the same figure is one line instead:
% \includegraphics{fig-decay.pdf}</code></pre>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The rule of thumb: LaTeX-typeset terminals (epslatex, tikz) are included with <code>\input</code> because the file is LaTeX code; finished graphics files (PDF from pdfcairo, or a converted EPS) are included with <code>\includegraphics</code> because the file is a graphic. Compile with your usual engine &mdash; for epslatex under pdflatex, remember the EPS needs the epstopdf conversion that modern distributions perform automatically, or convert it once yourself. A Makefile or a three-line shell script that runs gnuplot on every .gp file before calling pdflatex makes the whole build one command, and guarantees no stale figure ever survives into a submission.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Step 4 &mdash; The same workflow in Overleaf</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Nothing about this chain is tied to a local install: in an Overleaf project you can upload the generated .tex fragment (and its .eps companion, converted to PDF if your project compiles with pdflatex, or use the tikz .tex alone) alongside your .gp script for reference, and <code>\input</code> it exactly as above &mdash; the fragment is ordinary LaTeX, so Overleaf typesets it like any other part of the document. Keeping the .gp script in the project (even though Overleaf does not run gnuplot) means the figure&#8217;s source travels with the paper and any co-author can regenerate the fragment locally in seconds.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Common mistakes</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>Editing the generated .tex by hand:</strong> the next gnuplot run overwrites it. All changes belong in the .gp script &mdash; treat generated files as build output.</li><li><strong>Mixing routes in one paper:</strong> some figures via epslatex, some via PNG screenshots of the interactive window, gives mismatched fonts and line weights that reviewers notice. One route, one template, every figure.</li><li><strong>Forgetting to rebuild before submitting:</strong> data changed, figure didn&#8217;t. The one-command build (gnuplot for all scripts, then pdflatex) exists precisely to make this mistake impossible.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Related tutorials:</strong> <a href="/gnuplot-epslatex/" style="color:#5e2d79;text-decoration:underline;">The epslatex Terminal</a>, <a href="/gnuplot-tikz-terminal/" style="color:#5e2d79;text-decoration:underline;">The TikZ Terminal</a>. See also the full <a href="/gnuplot-tutorials/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Tutorials index</a>.</p>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Try it online:</strong> Prototype each figure in the online terminal, then save it as a .gp file in your paper project and run the workflow locally. Paste the script into the <a href="/online/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Online terminal</a> and run it in your browser &mdash; no install needed. To run gnuplot locally instead, see the <a href="/install-gnuplot/" style="color:#5e2d79;text-decoration:underline;">installation guide</a> and the <a href="/download/" style="color:#5e2d79;text-decoration:underline;">download page</a>.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Go deeper:</strong> For a systematic walk through gnuplot from first plots to publication-ready figures, see <a href="/go/manning-gnuplot" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;"><em>Gnuplot in Action</em></a> by Philipp K. Janert &mdash; Janert is a gnuplot developer, and the book is the most complete tutorial reference for the program. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Keep the sources safe:</strong> A finished figure is easy to re-export, but only if you still have the .gp script, the data file and the generated .tex fragment that produced it. Back those source files up with your paper: <a href="/go/pcloud" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;">pCloud</a> is one option for keeping them synced and versioned off your laptop. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Plot Date and Time Data in Gnuplot</title>
		<link>https://gnuplot.xyz/gnuplot-date-time-plot/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 20 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-date-time-plot/</guid>

					<description><![CDATA[Date plots in gnuplot rest on two settings that must agree: set xdata time declares the x axis as time, and set timefmt describes the exact date format used inside your data file. The script below plots daily visitors from a CSV file of ISO dates. The file visitors.csv uses ISO dates (YYYY-MM-DD) in column...]]></description>
										<content:encoded><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Date plots in gnuplot rest on two settings that must agree: <code>set xdata time</code> declares the x axis as time, and <code>set timefmt</code> describes the exact date format used inside your data file. The script below plots daily visitors from a CSV file of ISO dates.</p>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The file <code>visitors.csv</code> uses ISO dates (<code>YYYY-MM-DD</code>) in column 1 and a visitor count in column 2:</p>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>date,visitors
2026-09-01,412
2026-09-02,438
2026-09-03,501
2026-09-04,476
2026-09-05,529</code></pre>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>set datafile separator comma
set key autotitle columnhead
set xdata time
set timefmt "%Y-%m-%d"
set format x "%b %Y"
set xtics rotate by -45
set title "Daily Visitors"
set ylabel "Visitors"
plot "visitors.csv" using 1:2 with linespoints title "Visitors"</code></pre>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">What each part does</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><code>set xdata time</code> switches the x axis into time mode: internally, dates are converted to seconds and the axis arithmetic works on those seconds. <code>set timefmt "%Y-%m-%d"</code> is the input pattern &mdash; it must match the file character for character in structure: <code>%Y</code> is a four-digit year, <code>%m</code> a two-digit month and <code>%d</code> a two-digit day, with the literal hyphens between them. A file with <code>01/09/2026</code> dates needs <code>"%d/%m/%Y"</code> instead.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The output side is separate: <code>set format x "%b %Y"</code> controls how the axis labels are printed &mdash; here an abbreviated month name and year, such as &ldquo;Sep 2026&rdquo; &mdash; regardless of the input format. <code>set xtics rotate by -45</code> angles the labels so month labels do not collide. After the axis is declared as time, the <code>plot</code> command stays ordinary: <code>using 1:2</code> reads the date from column 1 (parsed with timefmt) and the value from column 2. The first two lines are the same CSV handling as in any comma-separated file: separator plus header-as-titles.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Variants and going further</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Timestamps with hours and minutes extend the pattern: <code>set timefmt "%Y-%m-%d %H:%M"</code> with labels from <code>set format x "%H:%M"</code>. Multi-day data often reads better with one tic per week: in time mode, tic increments are in seconds, so <code>set xtics 604800</code> places a tic every 7 days (7 &times; 24 &times; 3600). If your file already holds Unix epoch seconds, skip the pattern work: use <code>set timefmt "%s"</code> and gnuplot reads the numbers directly as seconds since 1970.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Common mistakes</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>All points pile onto one date or the plot is empty:</strong> <code>timefmt</code> does not match the file &mdash; wrong field order (month/day swapped), a two-digit year read with <code>%Y</code> instead of <code>%y</code>, or a separator mismatch such as slashes in the file but hyphens in the pattern. Compare them character by character; this is the most common date-plot failure by far.</li><li><strong>Axis labels show huge numbers instead of dates:</strong> <code>set xdata time</code> was set but a later <code>reset</code> or a numeric <code>set format x</code> overrode the display. Re-assert <code>set xdata time</code> and <code>set format x</code> with a date pattern after any reset.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Related tutorials:</strong> <a href="/plot-csv-data-gnuplot/" style="color:#5e2d79;text-decoration:underline;">Plot CSV Data in Gnuplot</a>, <a href="/gnuplot-axis-ranges-logscale/" style="color:#5e2d79;text-decoration:underline;">Axis Ranges, Tics and Log Scales</a>, <a href="/gnuplot-curve-fitting/" style="color:#5e2d79;text-decoration:underline;">Curve Fitting with fit</a>. See also the full <a href="/gnuplot-tutorials/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Tutorials index</a>.</p>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Try it online:</strong> Short date series paste cleanly into the online terminal, which makes it a safe place to debug a timefmt pattern. Paste the script into the <a href="/online/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Online terminal</a> and run it in your browser &mdash; no install needed. To run gnuplot locally instead, see the <a href="/install-gnuplot/" style="color:#5e2d79;text-decoration:underline;">installation guide</a> and the <a href="/download/" style="color:#5e2d79;text-decoration:underline;">download page</a>.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Go deeper:</strong> For a systematic walk through gnuplot from first plots to publication-ready figures, see <a href="/go/manning-gnuplot" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;"><em>Gnuplot in Action</em></a> by Philipp K. Janert &mdash; Janert is a gnuplot developer, and the book is the most complete tutorial reference for the program. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Verify Your Gnuplot Installation (Checklist)</title>
		<link>https://gnuplot.xyz/verify-gnuplot-installation/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 20 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Install & Setup]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/verify-gnuplot-installation/</guid>

					<description><![CDATA[A gnuplot install is verified in under a minute: open a new terminal, run gnuplot --version, and draw one test plot. For the current release the version command prints exactly gnuplot 6.0 patchlevel 5. Work through this checklist in order. The Checklist Open a fresh terminal. Terminals opened before the installation do not see PATH...]]></description>
										<content:encoded><![CDATA[<p>A gnuplot install is verified in under a minute: open a <em>new</em> terminal, run <code>gnuplot --version</code>, and draw one test plot. For the current release the version command prints exactly <code>gnuplot 6.0 patchlevel 5</code>. Work through this checklist in order.</p>
<h2>The Checklist</h2>
<ol>
<li><strong>Open a fresh terminal.</strong> Terminals opened before the installation do not see PATH changes — this alone explains most &ldquo;not found&rdquo; reports.</li>
<li><strong>Check the version:</strong>
<pre><code>gnuplot --version</code></pre>
<p>Expected output for the current release:</p>
<pre><code>gnuplot 6.0 patchlevel 5</code></pre>
<p>An older patchlevel simply means your package source (distribution repository, winget, Homebrew) has not caught up with 6.0.5 yet — the install itself is still valid.</li>
<li><strong>Check which binary runs:</strong>
<pre><code>which gnuplot</code></pre>
<p>On Windows PowerShell use <code>where.exe gnuplot</code>. If you installed more than once (package plus source build), this shows which copy wins.</li>
<li><strong>Draw a test plot:</strong>
<pre><code>gnuplot
plot sin(x)
exit</code></pre>
<p>A window with a sine curve proves the graphical terminal works.</li>
<li><strong>Test file output:</strong>
<pre><code>gnuplot -e "set terminal pngcairo; set output 'test.png'; plot sin(x)"</code></pre>
<p>A test.png file should appear in the current folder — this is the mode most scripts and pipelines actually use.</li>
</ol>
<h2>PATH Not Working? Symptoms and Quick Fixes</h2>
<ul>
<li><strong>&ldquo;gnuplot is not recognized / command not found&rdquo; in a fresh terminal:</strong> the install did not register on PATH. On Windows, re-run the installer and tick <em>&ldquo;Add application directory to your PATH&rdquo;</em>. On macOS with Homebrew, run the <code>brew shellenv</code> line Homebrew suggested. On Linux package installs this should never happen — check for a typo before anything else.</li>
<li><strong>Version prints an old release:</strong> an older gnuplot earlier on your PATH is shadowing the new one. Step 3 shows the path that is actually running; adjust PATH order or remove the old copy.</li>
<li><strong>Version works but no plot window:</strong> the binary is fine; the graphical terminal is missing or unreachable (common on headless servers). Use the pngcairo test in step 5 to confirm file output works.</li>
</ul>
<p>This checklist separates a broken install from a PATH hiccup in most cases. If gnuplot still misbehaves after every box is ticked, re-install cleanly from the packages on the <a href="/download/">download page</a> and re-run this page top to bottom.</p>
<div style="background:#f6f8fa;border:1px solid #d8dee4;border-radius:8px;padding:18px 20px;margin:28px 0;">
<p style="margin:0 0 8px;"><strong>Back up your plot scripts and data</strong></p>
<p style="margin:0 0 8px;">Your .gp scripts and data files are small but hard to recreate. Keeping a synced backup means a reinstall never costs you your work. <a href="/go/pcloud">pCloud</a> offers cloud storage with a one-time lifetime option and syncs a scripts folder across machines automatically. <em>Affiliate link — see our <a href="/affiliate-disclosure/">Affiliate Disclosure</a>.</em></p>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Publication-Quality Gnuplot Figures: The Export Checklist</title>
		<link>https://gnuplot.xyz/publication-quality-gnuplot-figures/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 19 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/publication-quality-gnuplot-figures/</guid>

					<description><![CDATA[A publication-quality figure is mostly decided before you export: export at the exact size the figure will be printed, use a vector terminal, and keep text, lines and colors legible at that size. The checklist below turns those principles into a five-minute pre-submission routine, with a template script that already encodes them. # Template: single-column...]]></description>
										<content:encoded><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">A publication-quality figure is mostly decided before you export: export at the exact size the figure will be printed, use a vector terminal, and keep text, lines and colors legible at that size. The checklist below turns those principles into a five-minute pre-submission routine, with a template script that already encodes them.</p>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code># Template: single-column journal figure, exported at final size
set terminal pdfcairo size 8.5cm,6.5cm enhanced font "Sans,9"
set output "figure1.pdf"
set title "Figure title (or leave the caption to the paper)"
set xlabel "Time (s)"
set ylabel "Signal (mV)"
set tics font "Sans,8"
set key font "Sans,8"
set border linewidth 1.2
set grid
plot "data.dat" using 1:2 with lines linewidth 2 linecolor rgb "#0072B2" title "Control", \
     "data.dat" using 1:3 with lines linewidth 2 dashtype 2 linecolor rgb "#D55E00" title "Treatment"
set output</code></pre>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Every number in that template is a decision, not a default. The canvas is 8.5 cm wide &mdash; a typical journal single column width (the common range is about 8.3&ndash;8.9 cm; double-column figures are about 17&ndash;18.5 cm) &mdash; so the 9-point font in the script is the 9-point font in print, with no scaling surprises. Line widths are raised from the defaults (border 1.2, curves 2) because defaults that look fine on a monitor go hairline-thin at column width. And the two series differ in <em>both</em> color and dash pattern, so the figure survives grayscale printing and color-vision deficiency.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">The pre-export checklist</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>Final size first:</strong> set the terminal <code>size</code> to the printed column width &mdash; roughly 8.5 cm single column, 17.5 cm double column are the usual targets &mdash; and never let the journal or LaTeX scale the file afterwards. Check your journal&#8217;s author guide for its exact widths; they vary.</li><li><strong>Vector first:</strong> submit pdfcairo, epslatex/tikz or SVG as the venue accepts. Use PNG only when raster is explicitly requested, and then export at a large pixel size with matching font sizes.</li><li><strong>Fonts at final size:</strong> axis labels around 9&ndash;10 pt and tic labels 8&ndash;9 pt <em>at the exported size</em>; if you must enlarge anything, enlarge the export, not the placed figure. One font family throughout, matching the paper where the venue asks for it.</li><li><strong>Line weights:</strong> data curves clearly heavier than axes and grid (for example curves at linewidth 2, border at 1&ndash;1.5, grid light or off). Print the figure once at 100 percent &mdash; if a curve disappears, it is too thin.</li><li><strong>Accessible color:</strong> do not encode a distinction by red versus green alone. Use a colorblind-aware palette (blue/orange is a safe pairing), and double-encode every distinction with a different dash pattern or point shape as well, so the figure also reads in black and white.</li><li><strong>Labels complete:</strong> every axis named with its unit, the legend (key) inside or below without covering data, and no plot title duplicating the caption the paper will add anyway.</li><li><strong>Data honesty:</strong> axis ranges that do not exaggerate, error bars where the paper claims uncertainty, and the script + data archived with the paper so the figure is reproducible.</li><li><strong>Proof at 100 percent:</strong> open the exported file &mdash; not the gnuplot window &mdash; zoom to actual print size, and check text size, line weights and overlaps there. That file is what the reviewers get.</li></ul>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Common mistakes</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>Designing big and shrinking:</strong> a figure designed at full-monitor size and scaled to one column by the typesetter ends up with 5-point text. Designing at final size from the start (the template above) is the entire fix.</li><li><strong>Color-only distinctions:</strong> three solid curves in red, green and blue look obvious on screen and collapse into each other in a grayscale printout or for a color-blind reader. Dash and marker differences are free insurance.</li><li><strong>Default everything:</strong> gnuplot&#8217;s defaults are tuned for screen exploration, not for print. The gap between a default export and the checklist version is about ten <code>set</code> lines &mdash; save them as a template file and <code>load</code> it at the top of every figure script.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Related tutorials:</strong> <a href="/gnuplot-png-vs-pdf-terminal/" style="color:#5e2d79;text-decoration:underline;">PNG vs PDF in Gnuplot</a>, <a href="/gnuplot-fonts/" style="color:#5e2d79;text-decoration:underline;">Fonts in Gnuplot</a>, <a href="/gnuplot-multiplot/" style="color:#5e2d79;text-decoration:underline;">Multiplot Layouts</a>. See also the full <a href="/gnuplot-tutorials/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Tutorials index</a>.</p>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Try it online:</strong> Draft the figure online at screen size, then apply the checklist template locally for the submission export. Paste the script into the <a href="/online/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Online terminal</a> and run it in your browser &mdash; no install needed. To run gnuplot locally instead, see the <a href="/install-gnuplot/" style="color:#5e2d79;text-decoration:underline;">installation guide</a> and the <a href="/download/" style="color:#5e2d79;text-decoration:underline;">download page</a>.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Go deeper:</strong> For a systematic walk through gnuplot from first plots to publication-ready figures, see <a href="/go/manning-gnuplot" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;"><em>Gnuplot in Action</em></a> by Philipp K. Janert &mdash; Janert is a gnuplot developer, and the book is the most complete tutorial reference for the program. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Curve Fitting in Gnuplot with fit</title>
		<link>https://gnuplot.xyz/gnuplot-curve-fitting/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 19 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-curve-fitting/</guid>

					<description><![CDATA[Curve fitting is built into gnuplot as the fit command: define a model function with unknown parameters, give the parameters starting values, and run fit f(x) "growth.dat" using 1:2 via a, b to adjust them by least squares. The script below fits an exponential to growth data. The file growth.dat holds x in column 1...]]></description>
										<content:encoded><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Curve fitting is built into gnuplot as the <code>fit</code> command: define a model function with unknown parameters, give the parameters starting values, and run <code>fit f(x) "growth.dat" using 1:2 via a, b</code> to adjust them by least squares. The script below fits an exponential to growth data.</p>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The file <code>growth.dat</code> holds x in column 1 and a measured y in column 2 that grows roughly exponentially:</p>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>0  1.1
1  1.7
2  2.6
3  4.2
4  6.6
5  10.4</code></pre>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>f(x) = a * exp(b * x) + c
a = 1.0
b = 0.1
c = 0.0
fit f(x) "growth.dat" using 1:2 via a, b, c
set title "Exponential Fit"
set xlabel "x"
set ylabel "y"
plot "growth.dat" using 1:2 with points pointtype 7 pointsize 1.3 title "Data", \
     f(x) with lines linewidth 2 title "Fit"
print sprintf("Fitted: a = %.4f, b = %.4f, c = %.4f", a, b, c)</code></pre>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">What each part does</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The first line defines the model: <code>f(x) = a * exp(b * x) + c</code>. The names <code>a</code>, <code>b</code> and <code>c</code> are parameters &mdash; variables whose values the fit will choose. The next three lines are not decoration: <code>fit</code> uses an iterative algorithm (Levenberg&ndash;Marquardt), so every parameter needs a starting value reasonably close to the truth, or the iteration can stall or wander off. For exponential growth, a small positive <code>b</code> such as 0.1 is a sane start.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The <code>fit</code> command itself reads like a plot command: the function, the file, the <code>using</code> columns for x and y, and finally <code>via a, b, c</code> listing exactly which variables may vary. When it finishes, gnuplot prints a summary &mdash; the final sum of squared residuals and, for each parameter, the fitted value plus an asymptotic standard error (a rough &plusmn; uncertainty). The parameters keep their fitted values afterwards, so the following <code>plot</code> draws <code>f(x)</code> as the fitted curve next to the raw points, and the <code>print sprintf(...)</code> line echoes the numbers for use in a caption or report. A full session log is also written to <code>fit.log</code> in the working directory.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Variants and going further</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">If the data file has an uncertainty column, weight the fit with it by adding the error column to the using spec: <code>fit f(x) "growth.dat" using 1:2:3 via a, b, c</code> treats column 3 as the y error (sigma), so precise points pull the curve harder. Fixing a parameter is just as easy: leave it out of the <code>via</code> list and it stays at its assigned value. For straight-line work the model is simply <code>f(x) = a * x + b</code> &mdash; the same workflow, and a good first fit to try.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Common mistakes</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>Fit stalls, diverges, or ends with huge errors:</strong> the starting values are too far from the solution, or two parameters trade off against each other (a classic with exponentials plus offsets). Plot the model with your starting values first &mdash; it should already pass near the data &mdash; then fit again.</li><li><strong>&ldquo;Undefined value during function evaluation&rdquo;:</strong> the trial parameters pushed the model outside its domain mid-fit, for example <code>log</code> of a negative number or overflow in <code>exp</code>. Constrain the start values, simplify the model, or fit a transformed form (such as fitting a line to log(y)) first to get good starting values.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Related tutorials:</strong> <a href="/gnuplot-error-bars/" style="color:#5e2d79;text-decoration:underline;">Error Bars in Gnuplot</a>, <a href="/plot-csv-data-gnuplot/" style="color:#5e2d79;text-decoration:underline;">Plot CSV Data in Gnuplot</a>. See also the full <a href="/gnuplot-tutorials/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Tutorials index</a>.</p>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Try it online:</strong> Fitting works in the online terminal with a pasted datablock, and the printed parameter summary appears in its console output. Paste the script into the <a href="/online/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Online terminal</a> and run it in your browser &mdash; no install needed. To run gnuplot locally instead, see the <a href="/install-gnuplot/" style="color:#5e2d79;text-decoration:underline;">installation guide</a> and the <a href="/download/" style="color:#5e2d79;text-decoration:underline;">download page</a>.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Go deeper:</strong> For a systematic walk through gnuplot from first plots to publication-ready figures, see <a href="/go/manning-gnuplot" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;"><em>Gnuplot in Action</em></a> by Philipp K. Janert &mdash; Janert is a gnuplot developer, and the book is the most complete tutorial reference for the program. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Use Gnuplot in VS Code: Syntax Highlighting &#038; Run Tasks</title>
		<link>https://gnuplot.xyz/gnuplot-vscode/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 19 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Install & Setup]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-vscode/</guid>

					<description><![CDATA[Visual Studio Code makes a comfortable gnuplot editor: install a Gnuplot syntax extension from the Marketplace for highlighting, add a small task to run the current script with one shortcut, and keep the integrated terminal open for interactive plotting. gnuplot itself must be installed separately first. Step 0: Install gnuplot Itself VS Code only edits...]]></description>
										<content:encoded><![CDATA[<p>Visual Studio Code makes a comfortable gnuplot editor: install a Gnuplot syntax extension from the Marketplace for highlighting, add a small task to run the current script with one shortcut, and keep the integrated terminal open for interactive plotting. gnuplot itself must be installed separately first.</p>
<h2>Step 0: Install gnuplot Itself</h2>
<p>VS Code only edits and launches scripts — the gnuplot program does the plotting. If <code>gnuplot --version</code> does not work in a terminal yet, follow the guide for your system: <a href="/install-gnuplot-windows/">Windows</a>, <a href="/install-gnuplot-mac/">macOS</a>, or <a href="/install-gnuplot-linux/">Linux</a>.</p>
<h2>Step 1: Add Gnuplot Language Support</h2>
<ol>
<li>Open the Extensions view (<code>Ctrl+Shift+X</code>).</li>
<li>Search the Marketplace for <strong>&ldquo;gnuplot&rdquo;</strong> and install an extension that provides gnuplot syntax highlighting (language support for .gp and .plt files). Several community extensions offer this; pick one whose description mentions gnuplot syntax highlighting and check its recent update history.</li>
<li>Open any .gp script — keywords, comments, and strings should now be colourised and the language indicator in the status bar should read &ldquo;gnuplot&rdquo;.</li>
</ol>
<h2>Step 2: Add a Run Task</h2>
<p>Create <code>.vscode/tasks.json</code> in your project folder with a task that runs the currently open script:</p>
<pre><code>{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Run gnuplot script",
      "type": "shell",
      "command": "gnuplot",
      "args": ["-p", "${file}"],
      "problemMatcher": []
    }
  ]
}</code></pre>
<p>Run it with <em>Terminal &rarr; Run Task &rarr; Run gnuplot script</em>. The <code>-p</code> flag keeps the plot window open after the script finishes.</p>
<h2>Step 3: Verify in the Integrated Terminal</h2>
<pre><code>gnuplot --version
gnuplot -p -e "plot sin(x)"</code></pre>
<p>The first line confirms VS Code&rsquo;s terminal sees the same gnuplot as your system terminal; the second should pop up a sine plot. Save scripts with <code>set terminal pngcairo</code> and <code>set output</code> blocks when you want files instead of windows.</p>
<h2>Common Pitfalls</h2>
<ul>
<li><strong>Task fails with &ldquo;gnuplot not found&rdquo; but the system terminal works:</strong> VS Code was already running when gnuplot was installed and inherited the old PATH. Restart VS Code completely.</li>
<li><strong>Plot window closes instantly:</strong> the <code>-p</code> (persist) flag is missing from the task arguments, or the script sets its own output file — both are fine, just check the generated PNG next to your script.</li>
</ul>
<p>New to gnuplot itself? Start a script, then test commands interactively in the <a href="/online/">online terminal</a> before wiring them into tasks.</p>
<div style="background:#f6f8fa;border:1px solid #d8dee4;border-radius:8px;padding:18px 20px;margin:28px 0;">
<p style="margin:0 0 8px;"><strong>Back up your plot scripts and data</strong></p>
<p style="margin:0 0 8px;">Your .gp scripts and data files are small but hard to recreate. Keeping a synced backup means a reinstall never costs you your work. <a href="/go/pcloud">pCloud</a> offers cloud storage with a one-time lifetime option and syncs a scripts folder across machines automatically. <em>Affiliate link — see our <a href="/affiliate-disclosure/">Affiliate Disclosure</a>.</em></p>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Fonts in Gnuplot: Choosing, Sizing and Finding Them</title>
		<link>https://gnuplot.xyz/gnuplot-fonts/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sun, 18 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-fonts/</guid>

					<description><![CDATA[On the cairo terminals (pngcairo, pdfcairo, epscairo) and the svg terminal, a gnuplot font is a single string of the form "Family,Size" &#8212; for example font "Arial,12". You set it once on the terminal line as the default for the whole figure, and override it per element (title, labels, tics, key) wherever one piece of...]]></description>
										<content:encoded><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">On the cairo terminals (pngcairo, pdfcairo, epscairo) and the svg terminal, a gnuplot font is a single string of the form <code>"Family,Size"</code> &mdash; for example <code>font "Arial,12"</code>. You set it once on the terminal line as the default for the whole figure, and override it per element (title, labels, tics, key) wherever one piece of text needs to differ.</p>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>set terminal pngcairo size 1000,700 enhanced font "Arial,12"
set output "report.png"
set title "Quarterly Report" font "Arial,16"
set xlabel "Month" font "Arial,13"
set ylabel "Revenue" font "Arial,13"
set tics font "Arial,10"
set key font "Arial,10"
plot "revenue.dat" using 1:2 with linespoints linewidth 2 title "Revenue"
set output</code></pre>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Read the font strings from left to right: family first, then a comma, then the size in points. Either half can be omitted &mdash; <code>font "Arial"</code> changes only the family and keeps the current size, <code>font ",14"</code> changes only the size and keeps the family (that size-only form is the quick fix when a figure&#8217;s text is uniformly too small). The terminal-line font is the default; the per-element <code>font</code> clauses on <code>set title</code>, <code>set xlabel</code>, <code>set tics</code> and <code>set key</code> override it locally, which is the pattern the script above uses: big title, medium labels, small tics and key.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Which fonts can you actually use?</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Gnuplot does not ship its own font library for these terminals &mdash; drawing is done by Cairo and text layout by Pango, which ask the operating system&#8217;s font machinery for the family you named. The gnuplot documentation says the same thing in its own words: under Windows the fonts live in the Fonts entry of the system settings, and under Unix they are handled by fontconfig. So &ldquo;which fonts does gnuplot have?&rdquo; is really &ldquo;which fonts does this computer have?&rdquo;, and you check it with the system&#8217;s own tools:</p>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>Linux (and other fontconfig systems):</strong> run <code>fc-list</code> in a shell to list every installed family (add <code>: family</code> &mdash; <code>fc-list : family | sort -u</code> &mdash; for a clean unique list of names you can paste into a script).</li><li><strong>Windows:</strong> open Settings &rarr; Personalisation &rarr; Fonts (or the Fonts folder in Control Panel) and use the family names exactly as shown there, for example Arial, Times New Roman, Consolas.</li><li><strong>macOS:</strong> open the Font Book app to browse installed families; Macs that also have fontconfig installed (for example via a gnuplot package manager build) can use <code>fc-list</code> in a terminal as well.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">The generic families <code>Sans</code>, <code>Serif</code> and <code>Monospace</code> always resolve to <em>some</em> real font on every system, which is why so many examples use <code>font "Sans,12"</code>: the script stays portable even though the exact typeface differs between machines.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">When a font is missing: silent fallback</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">If the named family is not installed, gnuplot does not stop with an error &mdash; Pango/fontconfig quietly substitute the closest available font and the plot renders anyway. That is convenient and dangerous in equal measure: convenient because scripts never crash over a font, dangerous because the figure you exported on a colleague&#8217;s machine can have subtly different text widths, so labels may collide or a carefully sized title may overflow. The defences are simple: prefer families you have verified with the tools above, prefer the generic families in scripts meant to be shared, and always judge the final figure from the exported file, not from an interactive window on a different machine. A related trap: requesting a style the family does not have (an italic or bold variant that does not exist) is likewise synthesized or substituted, so check bold/italic labels in the export too.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Common mistakes</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>Font clause has no effect:</strong> it was placed after the <code>plot</code> command, or set on the interactive terminal and the export re-set the terminal without a font. Terminal options belong on the <code>set terminal</code> line, before plotting.</li><li><strong>Text scales oddly in PDF output:</strong> pdfcairo applies a default <code>fontscale 0.5</code>, so a nominal 12-point font appears smaller in the finished PDF than in a PNG of the same script. If PDF text looks small, raise the sizes or set <code>fontscale 1.0</code> on the pdfcairo line &mdash; this surprises almost everyone once.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Related tutorials:</strong> <a href="/gnuplot-titles-labels/" style="color:#5e2d79;text-decoration:underline;">Titles, Labels and the Key</a>, <a href="/gnuplot-png-vs-pdf-terminal/" style="color:#5e2d79;text-decoration:underline;">PNG vs PDF in Gnuplot</a>. See also the full <a href="/gnuplot-tutorials/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Tutorials index</a>.</p>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Try it online:</strong> Try the per-element font clauses in the online terminal to see the size hierarchy before exporting. Paste the script into the <a href="/online/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Online terminal</a> and run it in your browser &mdash; no install needed. To run gnuplot locally instead, see the <a href="/install-gnuplot/" style="color:#5e2d79;text-decoration:underline;">installation guide</a> and the <a href="/download/" style="color:#5e2d79;text-decoration:underline;">download page</a>.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Go deeper:</strong> For a systematic walk through gnuplot from first plots to publication-ready figures, see <a href="/go/manning-gnuplot" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;"><em>Gnuplot in Action</em></a> by Philipp K. Janert &mdash; Janert is a gnuplot developer, and the book is the most complete tutorial reference for the program. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Multiplot Layouts in Gnuplot</title>
		<link>https://gnuplot.xyz/gnuplot-multiplot/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sun, 18 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-multiplot/</guid>

					<description><![CDATA[One figure with several panels is a gnuplot multiplot: set multiplot layout reserves a grid, each following plot fills the next cell, and unset multiplot closes the figure. The script below builds a 2&#215;2 panel of four related curves. set multiplot layout 2,2 rowsfirst title "Four Views of Related Functions" font ",14" set title "sin(x)"...]]></description>
										<content:encoded><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">One figure with several panels is a gnuplot multiplot: <code>set multiplot layout</code> reserves a grid, each following <code>plot</code> fills the next cell, and <code>unset multiplot</code> closes the figure. The script below builds a 2&times;2 panel of four related curves.</p>
<pre style="background:#1e1e2e;color:#e6e6f0;padding:18px 20px;border-radius:8px;overflow-x:auto;font-size:0.92rem;line-height:1.6;margin:18px 0;"><code>set multiplot layout 2,2 rowsfirst title "Four Views of Related Functions" font ",14"
set title "sin(x)"
plot sin(x) with lines linewidth 2 notitle
set title "cos(x)"
plot cos(x) with lines linewidth 2 notitle
set title "sin(x) * cos(x)"
plot sin(x) * cos(x) with lines linewidth 2 notitle
set title "exp(-x*x)"
set xrange [-3:3]
plot exp(-x*x) with lines linewidth 2 notitle
unset multiplot</code></pre>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">What each part does</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><code>set multiplot layout 2,2</code> starts multiplot mode with 2 rows and 2 columns; <code>rowsfirst</code> fills cells left-to-right across the first row before moving down (the alternative, <code>columnsfirst</code>, fills down the first column). The <code>title "..."</code> on the same line is the whole-figure title, drawn above the grid. From that point, every <code>plot</code> command draws into the next cell using whatever settings are active &mdash; that is why each panel sets its own <code>set title</code> first, and why the last panel can narrow its <code>xrange</code> without affecting the others.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">Settings are sticky across panels: a range, label or style set before panel 1 stays in force until changed. Use that deliberately &mdash; set shared elements (font, grid, y range) before the first panel so all four align, then override only what differs per panel. <code>unset multiplot</code> ends the figure and, for file terminals, completes the image file; forgetting it leaves the output unfinished.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Variants and going further</h2>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;">For panels that must share an axis exactly &mdash; the standard trick for comparable measurements &mdash; set the same <code>xrange</code>/<code>yrange</code> before the multiplot and add <code>set lmargin at screen 0.12</code>-style fixed margins (or simply identical margins via <code>set margins</code> in newer scripts) so the plot boxes line up even when y labels differ in width. Manual placement without a grid is also possible: omit <code>layout</code>, then position each panel with <code>set origin</code> and <code>set size</code> before its plot. In gnuplot 6.0.5, interactive multiplots gained full mouse support including pan and zoom with replot, which makes exploring panelled figures in the qt terminal noticeably smoother.</p>
<h2 style="font-size:1.45rem;color:#1a1a1a;margin:32px 0 12px 0;">Common mistakes</h2>
<ul style="font-size:1.05rem;color:#333;line-height:1.8;margin:0 0 18px 20px;"><li><strong>All panels show the same title or range:</strong> sticky settings were set inside the loop of panels but never changed per panel. Set per-panel titles and ranges immediately before each <code>plot</code>, not once at the top.</li><li><strong>Output file is empty or cut off:</strong> the script ended while still in multiplot mode. Always finish with <code>unset multiplot</code> &mdash; for file terminals the figure is only finalised at that point.</li></ul>
<p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Related tutorials:</strong> <a href="/gnuplot-3d-plot-splot/" style="color:#5e2d79;text-decoration:underline;">3D Plots with splot</a>, <a href="/gnuplot-first-plot/" style="color:#5e2d79;text-decoration:underline;">Your First Gnuplot Plot</a>. See also the full <a href="/gnuplot-tutorials/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Tutorials index</a>.</p>
<div style="background:#f7f2fa;border:1px solid #e3d5ef;border-radius:10px;padding:22px 24px;margin:36px 0 10px 0;"><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Try it online:</strong> Multiplots render in the online terminal as a single figure, so layout experiments are easy to check there. Paste the script into the <a href="/online/" style="color:#5e2d79;text-decoration:underline;">Gnuplot Online terminal</a> and run it in your browser &mdash; no install needed. To run gnuplot locally instead, see the <a href="/install-gnuplot/" style="color:#5e2d79;text-decoration:underline;">installation guide</a> and the <a href="/download/" style="color:#5e2d79;text-decoration:underline;">download page</a>.</p><p style="font-size:1.05rem;color:#333;line-height:1.8;margin-bottom:18px;"><strong>Go deeper:</strong> For a systematic walk through gnuplot from first plots to publication-ready figures, see <a href="/go/manning-gnuplot" rel="sponsored nofollow" style="color:#5e2d79;text-decoration:underline;"><em>Gnuplot in Action</em></a> by Philipp K. Janert &mdash; Janert is a gnuplot developer, and the book is the most complete tutorial reference for the program. Affiliate link: see our <a href="/affiliate-disclosure/" style="color:#5e2d79;text-decoration:underline;">Affiliate Disclosure</a>.</p></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Gnuplot Portable: Run Gnuplot Without Installing</title>
		<link>https://gnuplot.xyz/gnuplot-portable/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sun, 18 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Install & Setup]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-portable/</guid>

					<description><![CDATA[You do not need administrator rights or a formal install to use gnuplot on Windows. The 6.0.5 release includes a portable .7z package: extract it to any folder — including a USB drive — and run gnuplot.exe directly. Nothing is written to the registry and nothing is added to your system PATH. Step-by-Step: The Portable...]]></description>
										<content:encoded><![CDATA[<p>You do not need administrator rights or a formal install to use gnuplot on Windows. The 6.0.5 release includes a portable .7z package: extract it to any folder — including a USB drive — and run <code>gnuplot.exe</code> directly. Nothing is written to the registry and nothing is added to your system PATH.</p>
<h2>Step-by-Step: The Portable .7z Package</h2>
<ol>
<li><strong>Download the portable package.</strong> The file <code>gp605-win64-mingw.7z</code> is part of the official 6.0.5 release on SourceForge and is linked from our <a href="/download/">download page</a>.</li>
<li><strong>Extract it.</strong> Use 7-Zip (or Windows 11&rsquo;s built-in .7z support in Explorer) and extract to a folder you control, for example <code>D:\gnuplot-portable</code> on a USB drive or <code>C:\Users\you\gnuplot</code> on a locked-down work PC.</li>
<li><strong>Run it.</strong> Inside the extracted folder, open the <code>bin</code> subfolder and double-click <code>gnuplot.exe</code> for an interactive session, or open a terminal in that folder and run:
<pre><code>.\gnuplot.exe --version</code></pre>
<p>Expected: <code>gnuplot 6.0 patchlevel 5</code>.</li>
<li><strong>(Optional) Make it easy to reach.</strong> Create a desktop shortcut to <code>gnuplot.exe</code>, or add the <code>bin</code> folder to your <em>user</em> PATH (Settings &rarr; Environment Variables) — a per-user change that needs no admin rights.</li>
</ol>
<h2>Running From a USB Drive</h2>
<p>The portable build keeps its files in its own folder, so it runs the same from a USB stick on any Windows PC. Your scripts travel with it: keep your .gp files and data next to the executable folder and load them with relative paths, e.g. <code>load "scripts/first.gp"</code>.</p>
<h2>No Downloads Allowed? Use the Online Version</h2>
<p>On machines where even extracting an archive is blocked, the <a href="/online/">online gnuplot terminal</a> runs gnuplot directly in your browser — no download, no install, nothing left behind. It is a WebAssembly build of gnuplot 5.4 rather than 6.0.5, which covers the vast majority of everyday plotting commands.</p>
<h2>Common Pitfalls</h2>
<ul>
<li><strong>Plots do not open or a DLL is missing:</strong> the archive was only partially extracted. Re-extract the complete .7z and keep the folder structure intact — the executable expects its neighbouring files.</li>
<li><strong>The terminal cannot find gnuplot:</strong> portable means no system PATH entry. Either run it from its own folder as shown above, or add the folder to your user PATH once.</li>
</ul>
<p>Prefer a permanent setup later? The standard <a href="/install-gnuplot-windows/">Windows installer guide</a> takes five minutes.</p>
<div style="background:#f6f8fa;border:1px solid #d8dee4;border-radius:8px;padding:18px 20px;margin:28px 0;">
<p style="margin:0 0 8px;"><strong>Back up your plot scripts and data</strong></p>
<p style="margin:0 0 8px;">Your .gp scripts and data files are small but hard to recreate. Keeping a synced backup means a reinstall never costs you your work. <a href="/go/pcloud">pCloud</a> offers cloud storage with a one-time lifetime option and syncs a scripts folder across machines automatically. <em>Affiliate link — see our <a href="/affiliate-disclosure/">Affiliate Disclosure</a>.</em></p>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Fix: &#8216;gnuplot&#8217; Is Not Recognized as an Internal or External Command</title>
		<link>https://gnuplot.xyz/gnuplot-not-recognized-windows/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sat, 17 Oct 2026 10:00:00 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<guid isPermaLink="false">https://gnuplot.xyz/gnuplot-not-recognized-windows/</guid>

					<description><![CDATA[You installed gnuplot on Windows, opened Command Prompt or PowerShell, typed gnuplot — and got: 'gnuplot' is not recognized as an internal or external command, operable program or batch file. Gnuplot is almost certainly installed and working. Windows simply does not know where to look for it. What this message means When you type a...]]></description>
										<content:encoded><![CDATA[<p>You installed gnuplot on Windows, opened Command Prompt or PowerShell, typed <code>gnuplot</code> — and got:</p>
<pre><code>'gnuplot' is not recognized as an internal or external command,
operable program or batch file.</code></pre>
<p>Gnuplot is almost certainly installed and working. Windows simply does not know where to look for it.</p>
<h2>What this message means</h2>
<p>When you type a bare program name, Windows searches the folders listed in the <code>PATH</code> environment variable — and only those. The gnuplot installer offers to add its folder to PATH, but that option has to be selected during setup. Skip it (or install the portable build, which never touches PATH), and the fully working program stays invisible to the command line.</p>
<h2>Causes, most likely first</h2>
<ol>
<li><strong>The PATH option was not ticked during installation.</strong> The installer&#8217;s &#8220;Add application directory to your PATH&#8221; choice was left off.</li>
<li><strong>The terminal was opened before the install finished.</strong> Already-open Command Prompt and PowerShell windows keep the PATH they started with; they never see later changes.</li>
<li><strong>You are testing with the wrong name or in the wrong folder.</strong> The console executable is <code>gnuplot.exe</code>; the classic GUI-piped variant is <code>wgnuplot.exe</code>. Neither is found if PATH points somewhere else.</li>
</ol>
<h2>Fixes, step by step</h2>
<h3>1. Fastest check: call gnuplot by its full path</h3>
<p>The default install location puts the executables in the <code>bin</code> subfolder:</p>
<pre><code>"C:\Program Files\gnuplot\bin\gnuplot.exe" --version</code></pre>
<p>If that prints a version line such as <code>gnuplot 6.0 patchlevel 5</code>, the installation is healthy and this is purely a PATH problem. (If the folder is not there, reinstall first — the <a href="/install-gnuplot-windows/">Windows install guide</a> covers the standard route.)</p>
<h3>2. Add gnuplot to PATH manually</h3>
<ol>
<li>Press the Windows key and type <code>environment variables</code>, then open &#8220;Edit the system environment variables&#8221;.</li>
<li>Click &#8220;Environment Variables…&#8221;.</li>
<li>Under &#8220;System variables&#8221; (or &#8220;User variables&#8221;, if you prefer it per-account), select <code>Path</code> and click &#8220;Edit&#8221;.</li>
<li>Click &#8220;New&#8221; and add: <code>C:\Program Files\gnuplot\bin</code></li>
<li>OK your way out of every dialog — changes do not apply until all of them are confirmed.</li>
</ol>
<h3>3. Reopen the terminal, then verify</h3>
<p>Close every Command Prompt/PowerShell window and open a fresh one — this step is not optional, since running terminals never refresh their PATH. Then:</p>
<pre><code>gnuplot --version
where gnuplot</code></pre>
<p><code>where gnuplot</code> prints the exact executable Windows resolves, which is the definitive proof the PATH entry works. Our <a href="/verify-gnuplot-installation/">installation verification guide</a> continues from here with the full checklist (version output, a first plot, terminal list).</p>
<h3>Alternative: reinstall and tick the box</h3>
<p>Running the installer again and selecting &#8220;Add application directory to your PATH&#8221; achieves the same result without manual editing — the manual route above is simply faster and works for portable installs too.</p>
<h2>A minimal script that works</h2>
<p>Once <code>gnuplot --version</code> answers in a fresh terminal, this proves end-to-end plotting from the command line:</p>
<pre><code>gnuplot -e "set terminal pngcairo; set output 'test.png'; plot sin(x)"</code></pre>
<p>A <code>test.png</code> should appear in the current folder. If the version command still fails in a brand-new terminal, double-check the PATH entry for typos — a missing <code>\bin</code> at the end is the usual one.</p>
<h2>Still stuck?</h2>
<p>The official documentation at <a href="https://gnuplot.info/documentation.html" rel="noopener" target="_blank">gnuplot.info</a> includes the full command reference, and the gnuplot-info mailing list linked there is the best place to ask when a script misbehaves in a way this page does not cover — include the exact error message and a small sample of your data when you post.</p>
<h2>Related troubleshooting</h2>
<ul>
<li><a href="/verify-gnuplot-installation/">Verify your gnuplot installation</a></li>
<li><a href="/install-gnuplot-windows/">Install gnuplot on Windows, step by step</a></li>
<li><a href="/gnuplot-troubleshooting/">All gnuplot troubleshooting guides</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
