<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Posts on Khaled&#39;s Blog</title>
    <link>https://kmbadawy.github.io/posts/</link>
    <description>Recent content in Posts on Khaled&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 13 Aug 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://kmbadawy.github.io/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Aren&#39;t we all tired from plotting bands?</title>
      <link>https://kmbadawy.github.io/posts/bands/</link>
      <pubDate>Thu, 13 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://kmbadawy.github.io/posts/bands/</guid>
      <description>I hold the solution</description>
      <content:encoded><![CDATA[<p>Surfing the web for a band structure plotting tool turns out to be a trivial task. But what is not trivial
is the waiting time for these tools to parse the astronomical PROCAR and DOSCAR files ! I had a cup of tea
and consulted &lsquo;Claude Code&rsquo; as I obviously cannot code this good. I gave the ideas, Claude coded it ! The key
is to shorten the parsing time, which thankfully the beloved VASPKIT software does it incredibly fast.</p>
<p>I present to you pltband.py !</p>
<p>A one script that will read the BAND.dat and PBAND files to plot a nice band structure plot
(like those you see in Nature journals). Briefly, code can:</p>
<ol>
<li>
<p>plot spin, non-spin, or projected band structure.</p>
</li>
<li>
<p>Highlight bands by their index</p>
</li>
<li>
<p>Truncate at a kpath or plot around a certain kpoint</p>
</li>
<li>
<p>compare with wannier90_band.dat file</p>
</li>
<li>
<p>Flexible formatting changes</p>
</li>
</ol>
<p>All of this is done using a single command line. It is not perfect but after all we dont want to waste time plotting
bands or waiting for parsing files.</p>
<p>More details are found at <a href="https://github.com/kmbadawy/pltband.git">https://github.com/kmbadawy/pltband.git</a></p>
<p>You can find plotting examples in our paper <a href="https://doi.org/10.1038/s41524-026-02029-6">https://doi.org/10.1038/s41524-026-02029-6</a></p>
]]></content:encoded>
    </item>
  </channel>
</rss>
