Skip to content

Commit

Permalink
docs: add docstrings to plotting.colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Apr 11, 2024
1 parent a70c425 commit 1a15a70
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 52 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"pyqtgraph": ("https://pyqtgraph.readthedocs.io/en/latest/", None),
"csaps": ("https://csaps.readthedocs.io/en/latest/", None),
"iminuit": ("https://scikit-hep.org/iminuit/", None),
"cmasher": ("https://cmasher.readthedocs.io/", None),
}


Expand Down Expand Up @@ -421,7 +422,6 @@ def get_inproceedings_template(self, e):

latex_engine = "lualatex"
latex_show_pagerefs = True
latex_show_urls = "footnote"
latex_table_style = ["booktabs", "colorrows"]
latex_elements = {
"fontpkg": r"""\usepackage{fontspec,unicode-math}
Expand Down
5 changes: 3 additions & 2 deletions docs/source/user-guide/plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"tags": []
},
"source": [
"First, let us generate some example data from a simple tight binding model of graphene."
"First, let us generate some example data from a simple tight binding model of graphene.\n",
"A rigid shift of 200 meV has been applied so that the Dirac cone is visible."
]
},
{
Expand All @@ -84,7 +85,7 @@
"source": [
"from erlab.interactive.exampledata import generate_data\n",
"\n",
"dat = generate_data().T"
"dat = generate_data(bandshift=-0.2).T"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions src/erlab/interactive/exampledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def generate_data(
temp: float = 20.0,
a: float = 6.97,
t: float = 0.43,
bandshift: float = -0.2,
bandshift: float = 0.0,
Sreal: float = 0.0,
Simag: float = 0.03,
kres: float = 0.01,
Expand Down Expand Up @@ -77,7 +77,7 @@ def generate_data(
t
Tight binding parameter :math:`t`, by default 0.43
bandshift
The rigid energy shift in eV, by default -0.2
The rigid energy shift in eV, by default 0.0
Sreal
The real part of the self energy, by default 0.0
Simag
Expand Down Expand Up @@ -156,7 +156,7 @@ def generate_data_angles(
temp: float = 20.0,
a: float = 6.97,
t: float = 0.43,
bandshift: float = -0.2,
bandshift: float = 0.0,
Sreal: float = 0.0,
Simag: float = 0.03,
angres: float = 0.1,
Expand Down Expand Up @@ -191,7 +191,7 @@ def generate_data_angles(
t
Tight binding parameter :math:`t`, by default 0.43
bandshift
The rigid energy shift in eV, by default -0.2
The rigid energy shift in eV, by default 0.0
Sreal
The real part of the self energy, by default 0.0
Simag
Expand Down
Loading

0 comments on commit 1a15a70

Please sign in to comment.