<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kfdani-001-site10.gtempurl.com/index.php?action=history&amp;feed=atom&amp;title=OpenSite%2FGuides%2FPublish_a_plot</id>
	<title>OpenSite/Guides/Publish a plot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kfdani-001-site10.gtempurl.com/index.php?action=history&amp;feed=atom&amp;title=OpenSite%2FGuides%2FPublish_a_plot"/>
	<link rel="alternate" type="text/html" href="https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Publish_a_plot&amp;action=history"/>
	<updated>2026-10-30T02:50:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Publish_a_plot&amp;diff=868&amp;oldid=prev</id>
		<title>BathAfrica: Add rewritten practical lesson with steps, code and expected results</title>
		<link rel="alternate" type="text/html" href="https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Publish_a_plot&amp;diff=868&amp;oldid=prev"/>
		<updated>2026-10-29T21:01:11Z</updated>

		<summary type="html">&lt;p&gt;Add rewritten practical lesson with steps, code and expected results&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{OpenSite scope}}&lt;br /&gt;
{{OpenSite lesson&lt;br /&gt;
|id=opensite.help.publish-a-plot&lt;br /&gt;
|summary=Draw a small arithmetic curve and publish it to an OpenSite plot tab.&lt;br /&gt;
|prerequisites=Desktop GUI and Python, with Matplotlib in the matching scientific runtime. This example is not a structural-analysis result.&lt;br /&gt;
|steps==== Create a figure ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;plt.subplots()&amp;lt;/code&amp;gt;, then label both axes and state units. The lesson plots length squared, not a solver response.&lt;br /&gt;
&lt;br /&gt;
=== Publish the selected figure ===&lt;br /&gt;
Call &amp;lt;code&amp;gt;opensite.plot.show(figure)&amp;lt;/code&amp;gt;. Calling &amp;lt;code&amp;gt;show()&amp;lt;/code&amp;gt; without an argument publishes open figures.&lt;br /&gt;
&lt;br /&gt;
=== Read the plot tab ===&lt;br /&gt;
Plot views share the central workspace with scripts and document views. Switching workbench does not mean those tabs must close.&lt;br /&gt;
&lt;br /&gt;
=== Navigate or export ===&lt;br /&gt;
Zoom/pan navigate the published raster. Use the viewer’s Save/Copy actions when present; do not assume zoom recalculates Matplotlib axes or underlying engineering data.&lt;br /&gt;
&lt;br /&gt;
|result=Four labelled points appear, with illustrative values 1, 4, 9 and 16 m².&lt;br /&gt;
|limitations=The current viewer publishes Agg-rendered images. Matplotlib must be present in the matching runtime; installing it into an unrelated system Python does not update OpenSite.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Complete example ==&lt;br /&gt;
{{Code|lang=python|code=&amp;lt;nowiki&amp;gt;import opensite&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
&lt;br /&gt;
lengths = [1.0, 2.0, 3.0, 4.0]&lt;br /&gt;
illustrative_values = [length * length for length in lengths]&lt;br /&gt;
figure, axes = plt.subplots()&lt;br /&gt;
axes.plot(lengths, illustrative_values, marker=&amp;quot;o&amp;quot;)&lt;br /&gt;
axes.set(xlabel=&amp;quot;Input length (m)&amp;quot;, ylabel=&amp;quot;Illustrative value (m²)&amp;quot;,&lt;br /&gt;
         title=&amp;quot;Reading a published plot&amp;quot;)&lt;br /&gt;
axes.grid(True)&lt;br /&gt;
opensite.plot.show(figure)&lt;br /&gt;
# This arithmetic demonstration is not a structural analysis result.&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;os-page-nav&amp;quot;&amp;gt;{{Docnav|OpenSite/Guides/Debug a Python script|OpenSite/Guides/Navigate a viewport|OpenSite/Guides|All guides}}&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:OpenSite documentation]]&lt;/div&gt;</summary>
		<author><name>BathAfrica</name></author>
	</entry>
</feed>