Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figures.update guidelines #28

Merged
merged 3 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion group-syllabus/figures.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Do not show the coordinate direction arrows (usually x, y, z) included in Paravi
An exception might be creating a simulation video that requires the viewer to know these orientations.
If you are exporting an image, superimpose your own direction triad if needed.

### Axis bounds
### Axis bounds and ticks

Your axes should, whenever possible, start and end at labeled tick marks.
This is especially important for log-scale axes.
Expand All @@ -147,6 +147,21 @@ In pgfplots, this is achieved with the options:
Avoid excessive text in tick marks when possible.
For example, use `1, 2, 3, 4, 5` in units of `kHz` instead of `1000, 2000, 300, 4000, 5000` in units of `Hz`.

### Axis labels

In `tikz_preamble.tex`, the package `siunitx` is imported. If possible, use this to format your units. For example, if your units are in microseconds ($\mu \textrm{s}$), use `\unit{\micro\second}`. To access documentation on `siunitx`, visit [the package webpage here](https://ctan.org/pkg/siunitx?lang=en).

For log-scale axes, be sure that you use actual quantities in the data you plot.
For example, do not label your axis as "$2^x$ Points" where $x$ is linearly plotted on the axis.
Log mode in pgfplots exists for a reason!

In some cases, pgfplots will scale the axis label by some $k$-th power of $10$, indicated using $\cdot 10^n$. If possible, it would be preferable to replace the $\cdot$ symbol with $\times$. This may be done by ways of inserting the expression `tick scale binop=\times` in the axis environment.

When naming your axes, ensure the chosen labels clearly convey what quantities or qualities they describe, and in almost all cases one should include the math symbol that describes any text in the label.
For example, suppose you seek to indicate how your algorithm scales with the number of lattice sites.
"Number of Lattice Sites $N$" conveys this intention, albeit long, and simply using "Lattice Sites" is unclear.
Someone unfamiliar with the content may interpret this as referring to data describing different points on a given lattice.

### Information quantity

Your figures should only contain the information required to tell the story or demonstrate the desired results.
Expand Down
Loading