<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Chapter 17 :: Coding For Chemists</title>
    <link>https://codingforchemistsbook.com/book_material/chapter-17/index.html</link>
    <description>Data Download Data for Chapter 17&#xA;Alternatively, individual files can be found in the Data section.&#xA;Code from chapter Code for this chapter will appear here.&#xA;Solutions to Exercises Exercise 1 There are no exercises for this chapter. Congratulations on completing the book!&#xA;import numpy as np import plotly.graph_objects as go theta = np.linspace(0, 2*np.pi, 200) f_x = np.cos(theta) f_y = np.sin(theta) left = (-0.3, 0.4) right = (0.3, 0.4) m_theta = np.linspace(0, np.pi, 100) m_x = 0.5 * np.cos(m_theta) m_y = -0.4 + 0.2 * -np.sin(m_theta) m_x = 0.66*np.cos(theta) m_y = -abs(0.66*np.sin(theta)) fig = go.Figure() fig.add_scatter(x=f_x, y=f_y, #fill=&#39;toself&#39;, mode=&#39;lines&#39;, line_color=&#39;black&#39;, #fillcolor=&#39;yellow&#39; ) fig.add_scatter(x=[left[0]], y=[left[1]], mode=&#39;markers&#39;, marker=dict(size=20, color=&#39;black&#39;)) fig.add_scatter(x=[right[0]], y=[right[1]], mode=&#39;markers&#39;, marker=dict(size=20, color=&#39;black&#39;)) fig.add_scatter(x=m_x, y=m_y, mode=&#39;lines&#39;, line=dict(width=4, color=&#39;black&#39;)) fig.update_layout( title=&#34;Congratulations!&#34;, template = &#34;simple_white&#34;, paper_bgcolor=&#39;yellow&#39;, plot_bgcolor=&#39;yellow&#39;, xaxis=dict(showgrid=False, zeroline=False, visible=False), yaxis=dict(showgrid=False, zeroline=False, visible=False), width=500, height=500, margin = dict(l = 40, r = 40, t = 40, b = 40), showlegend=False ) fig.update_yaxes(scaleanchor=&#34;x&#34;, scaleratio=1) fig.show(&#34;png&#34;)</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <managingEditor>authors@codingforchemistsbook.com (Benjamin Lear and Christopher Johnson)</managingEditor>
    <webMaster>authors@codingforchemistsbook.com (Benjamin Lear and Christopher Johnson)</webMaster>
    <atom:link href="https://codingforchemistsbook.com/book_material/chapter-17/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>