# Plotting of band gaps

**URL:** <https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957>\
**Category:** Physics Q&A\
**Created:** [April 9, 2021, 10:04am UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957 "2021-04-09T10:04:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtstap](https://forum.solidstate.quantumtinkerer.tudelft.nl/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@jtstap](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/jtstap)\
**Post date:** [April 9, 2021, 10:04am UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/1 "2021-04-09T10:04:52Z")

</div>

Hello,

After seeing some of the plots in the lecture notes and in the solutions of the exams. Is there a program (python script?) we could use to visualise bandgaps and their structure? That you can input the potential and then have a plot to show those bandgaps? Possible in 3d so we could see the full implications of a 2d potential (like the one in the minitest 3 2021)?

---

<div class="post-metadata">

**Author:** ![anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/user_avatar/forum.solidstate.quantumtinkerer.tudelft.nl/anton-akhmerov/32/5_2.png) [@anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/anton-akhmerov)\
**Post date:** [April 10, 2021, 7:09pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/2 "2021-04-10T19:09:38Z")

</div>

Yes, there is! Go to the lectures 13 or 14, press the magic wand button

 ![image](https://forum.solidstate.quantumtinkerer.tudelft.nl/uploads/default/original/1X/e25b52d9a01f2378305644379a6741f719bdd4b4.png)

and then you can use the code right from the lectures (it’ll appear right before the corresponding figures).

---

<div class="post-metadata">

**Author:** ![jtstap](https://forum.solidstate.quantumtinkerer.tudelft.nl/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@jtstap](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/jtstap)\
**Post date:** [April 11, 2021, 6:31pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/3 "2021-04-11T18:31:40Z")

</div>

@anton-akhmerov, this indeed shows the code for the plotting. But all the plots are hardcoded. Meaning it just plots the final solution and does not allow for changes in initial parameters.

---

<div class="post-metadata">

**Author:** ![anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/user_avatar/forum.solidstate.quantumtinkerer.tudelft.nl/anton-akhmerov/32/5_2.png) [@anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/anton-akhmerov)\
**Post date:** [April 11, 2021, 6:43pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/4 "2021-04-11T18:43:41Z")

</div>

You can edit the code right there and rerun.

---

<div class="post-metadata">

**Author:** ![jtstap](https://forum.solidstate.quantumtinkerer.tudelft.nl/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@jtstap](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/jtstap)\
**Post date:** [April 11, 2021, 7:18pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/5 "2021-04-11T19:18:24Z")

</div>

Yes you can edit the code, but there is not already a function V = … you can edit to something else. The final solution to the band gap formula is already coded in. Meaning you would stil have to manually do the calculation which makes the code rather useless to edit.

---

<div class="post-metadata">

**Author:** ![anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/user_avatar/forum.solidstate.quantumtinkerer.tudelft.nl/anton-akhmerov/32/5_2.png) [@anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/anton-akhmerov)\
**Post date:** [March 14, 2026, 3:18pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/6 "2026-03-14T15:18:41Z")

</div>

Unlisted on March 14, 2026, 3:18pm UTC



---

<div class="post-metadata">

**Author:** ![anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/user_avatar/forum.solidstate.quantumtinkerer.tudelft.nl/anton-akhmerov/32/5_2.png) [@anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/anton-akhmerov)\
**Post date:** [March 14, 2026, 3:18pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/7 "2026-03-14T15:18:41Z")

</div>

Archived on March 14, 2026, 3:18pm UTC



---

<div class="post-metadata">

**Author:** ![anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/user_avatar/forum.solidstate.quantumtinkerer.tudelft.nl/anton-akhmerov/32/5_2.png) [@anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/anton-akhmerov)\
**Post date:** [March 14, 2026, 3:32pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/8 "2026-03-14T15:32:41Z")

</div>

Unarchived on March 14, 2026, 3:32pm UTC



---

<div class="post-metadata">

**Author:** ![anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/user_avatar/forum.solidstate.quantumtinkerer.tudelft.nl/anton-akhmerov/32/5_2.png) [@anton-akhmerov](https://forum.solidstate.quantumtinkerer.tudelft.nl/u/anton-akhmerov)\
**Post date:** [March 14, 2026, 3:32pm UTC](https://forum.solidstate.quantumtinkerer.tudelft.nl/t/plotting-of-band-gaps/957/9 "2026-03-14T15:32:42Z")

</div>

Listed on March 14, 2026, 3:32pm UTC


