# Extracting raw data from qplot

**URL:** https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671
**Category:** Visualization
**Tags:** makie, glmakie
**Created:** [December 15, 2023, 2:36pm UTC](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671 "2023-12-15T14:36:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alex123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@alex123](https://discourse.julialang.org/u/alex123)
#### Post date: [December 15, 2023, 2:36pm UTC](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671/1 "2023-12-15T14:36:34Z")

</div>

Hi, I am using Quantica for finding the band structure of twisted bilayer graphene. Here is the part of my code that finds the hamiltonian and plots the band structure:  
b = hamiltonian(tbg, model) |\>  
bands(subdiv((0, 2, 3, 4), 20);  
mapping=(0, 2, 3, 4) =\> (:Γ, :K, :M, :Γ),  
solver=ES.ShiftInvert(ES.ArnoldiMethod(nev=10), 0.0))

```
qplot(b, axis = (; xticks = ([0, 2, 3, 4], ["Γ", "K", "M", "Γ"]), xlabel="k-space",ylabel = "ϵ", title="θ = $angle ° (n=$n)"))

```

I want to be able to extract the raw data from the plot.  
Thank you.

---

<div class="post-metadata">

### Author: ![pablosanjose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pablosanjose/32/7006_2.png) [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)
#### Post date: [December 22, 2023, 10:01am UTC](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671/2 "2023-12-22T10:01:01Z")

</div>

@alex123, I didn’t see this post until now. I guess you got your answer in the [other post](https://discourse.julialang.org/t/extracting-numerical-results-from-hamiltonian-using-quantica/107809) ?  
Feel free to ping me (@pablosanjose) for anything related to Quantica.jl so I don’t miss it

---

<div class="post-metadata">

### Author: ![alex123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@alex123](https://discourse.julialang.org/u/alex123)
#### Post date: [December 22, 2023, 2:55pm UTC](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671/3 "2023-12-22T14:55:16Z")

</div>

Yes, thank you!
