Skip to content

Commit 32c0ea6

Browse files
Merge pull request #75 from easyscience/docs
Improves the summer school analysis notebook and formats axes ticks
2 parents 54c1131 + 9432c87 commit 32c0ea6

File tree

5 files changed

+196
-78
lines changed

5 files changed

+196
-78
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.pixi

docs/mkdocs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ extra:
2727
name: EasyDiffraction Library Source Code on GitHub
2828

2929
# Jupyter notebooks
30-
#plugins:
31-
# - mkdocs-jupyter:
32-
# execute_ignore:
30+
plugins:
31+
- mkdocs-jupyter:
32+
execute_ignore:
33+
- 'quick*.ipynb'
34+
- 'basic*.ipynb'
35+
- 'advanced*.ipynb'
36+
- 'cryst*.ipynb'
37+
- 'pdf*.ipynb'
3338
# - '*emcee*.ipynb' # Ignore notebooks with 'emcee' in the name from execution
3439

3540
##################

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ source = 'versioningit' # Use versioningit to manage the version
113113
# source code.
114114

115115
[tool.versioningit.format]
116-
distance = '{base_version}.post{distance}' # example: 1.2.3.post42
117-
dirty = '{base_version}' # example: 1.2.3
118-
distance-dirty = '{base_version}.post{distance}' # example: 1.2.3.post42
116+
distance = '{base_version}+d{distance}' # example: 0.5.8+d3, 1.2.3.post4+d2
117+
dirty = '{base_version}' # example: 0.5.8, 1.2.3.post4
118+
distance-dirty = '{base_version}+d{distance}' #
119119

120120
# Configure how versioningit detects versions from Git
121121
# - 'match' ensures it only considers tags starting with 'v'

src/easydiffraction/plotting/plotters/plotter_plotly.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ def plot(
104104
layout=layout,
105105
)
106106

107+
# Format the axes ticks
108+
# Keeps decimals for small numbers; groups thousands for large ones
109+
fig.update_xaxes(tickformat=',.6~g', separatethousands=True)
110+
fig.update_yaxes(tickformat=',.6~g', separatethousands=True)
111+
107112
# Show the figure
108113

109114
# In GitHub CI builds (e.g., during Jupyter Book generation), avoid

0 commit comments

Comments
 (0)